diff options
Diffstat (limited to 'ext/spl/tests/recursiveIteratorIterator_beginchildren_error.phpt')
-rw-r--r-- | ext/spl/tests/recursiveIteratorIterator_beginchildren_error.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/recursiveIteratorIterator_beginchildren_error.phpt b/ext/spl/tests/recursiveIteratorIterator_beginchildren_error.phpt index 7ed3b6eb34..cac0e2c479 100644 --- a/ext/spl/tests/recursiveIteratorIterator_beginchildren_error.phpt +++ b/ext/spl/tests/recursiveIteratorIterator_beginchildren_error.phpt @@ -1,7 +1,7 @@ --TEST-- SPL: RecursiveIteratorIterator - Exception thrown in beginchildren which should be handled in next() --FILE-- -<?php +<?php $arr = array(array(1,2),2); $arrOb = new ArrayObject($arr); @@ -9,7 +9,7 @@ $arrOb = new ArrayObject($arr); $recArrIt = new RecursiveArrayIterator($arrOb->getIterator()); class MyRecursiveIteratorIterator extends RecursiveIteratorIterator { - + function beginchildren() { throw new Exception; } |