summaryrefslogtreecommitdiff
path: root/ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt')
-rw-r--r--ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt b/ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt
index 0e3c1c1439..1961517253 100644
--- a/ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt
+++ b/ext/spl/tests/recursiveIteratorIterator_callHasChildren_error.phpt
@@ -1,7 +1,7 @@
--TEST--
SPL: RecursiveIteratorIterator - Exception thrown in callHasChildren which should be handled in next()
--FILE--
-<?php
+<?php
$arr = array(1,2);
$arrOb = new ArrayObject($arr);
@@ -9,7 +9,7 @@ $arrOb = new ArrayObject($arr);
$recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
class MyRecursiveIteratorIterator extends RecursiveIteratorIterator {
-
+
function callHasChildren() {
throw new Exception;
}