com php-src: Fixed test (backtrace was changed): ext/spl/tests/ spl_heap_count_basic.phpt
[email protected] (Dmitry Stogov)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 34be1cf2aabfec26fecb994eedcbd208efc5bbd3 Author: Dmitry Stogov <[email protected]> Thu, 25 May 2017 16:02:16 +0300 Parents: cd953269d3d486f775f1935731b1d6d44f12a350 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=34be1cf2aabfec26fecb994eedcbd208efc5bbd3 Log: Fixed test (backtrace was changed) Changed paths: M ext/spl/tests/spl_heap_count_basic.phpt Diff: diff --git a/ext/spl/tests/spl_heap_count_basic.phpt b/ext/spl/tests/spl_heap_count_basic.phpt index a14133e..3bdd658 100644 --- a/ext/spl/tests/spl_heap_count_basic.phpt +++ b/ext/spl/tests/spl_heap_count_basic.phpt @@ -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