Fixed test (backtrace was changed)

This commit is contained in:
Dmitry Stogov 2017-05-25 16:02:16 +03:00
parent cd953269d3
commit 34be1cf2aa

View File

@ -23,13 +23,12 @@ class MyHeap extends SplHeap
$heap = new MyHeap();
$heap->insert(1);
count($heap);// refers to MyHeap->count() method
try {
count($heap);// refers to MyHeap->count() method
} catch (Exception $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
?>
--EXPECTF--
Fatal error: Uncaught Exception: Cause count to fail in %s
Stack trace:
#0 [internal function]: MyHeap->count()
#1 %s count(Object(MyHeap))
#2 {main}
thrown in %s on line %d
--EXPECT--
Exception: Cause count to fail