summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_031.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/iterator_031.phpt')
-rwxr-xr-xext/spl/tests/iterator_031.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/iterator_031.phpt b/ext/spl/tests/iterator_031.phpt
index 458f071b7..40342f4bb 100755
--- a/ext/spl/tests/iterator_031.phpt
+++ b/ext/spl/tests/iterator_031.phpt
@@ -56,7 +56,7 @@ try
{
$ap->append($it);
}
-catch(BadMethodCallException $e)
+catch(LogicException $e)
{
echo $e->getMessage() . "\n";
}
@@ -90,7 +90,7 @@ MyArrayIterator::rewind
1=>2
MyAppendIterator::__construct
MyAppendIterator::append
-Classes derived from AppendIterator must call AppendIterator::__construct()
+The object is in an invalid state as the parent constructor was not called
AppendIterator::getIterator() must be called exactly once per instance
MyAppendIterator::append
MyArrayIterator::rewind