mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
Fixed test (backtrace was changed)
This commit is contained in:
parent
cd953269d3
commit
34be1cf2aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user