diff options
Diffstat (limited to 'ext/spl/tests/recursiveIteratorIterator_endchildren_error.phpt')
-rw-r--r-- | ext/spl/tests/recursiveIteratorIterator_endchildren_error.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/recursiveIteratorIterator_endchildren_error.phpt b/ext/spl/tests/recursiveIteratorIterator_endchildren_error.phpt index 32617bf108..941f92be82 100644 --- a/ext/spl/tests/recursiveIteratorIterator_endchildren_error.phpt +++ b/ext/spl/tests/recursiveIteratorIterator_endchildren_error.phpt @@ -1,7 +1,7 @@ --TEST-- SPL: RecursiveIteratorIterator - Exception thrown in endchildren which should be handled in next() --FILE-- -<?php +<?php $arr = array(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 endchildren() { throw new Exception; } |