From: Dmitry Stogov Date: Thu, 25 May 2017 13:02:16 +0000 (+0300) Subject: Fixed test (backtrace was changed) X-Git-Tag: php-7.2.0alpha1~57^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34be1cf2aabfec26fecb994eedcbd208efc5bbd3;p=php Fixed test (backtrace was changed) --- diff --git a/ext/spl/tests/spl_heap_count_basic.phpt b/ext/spl/tests/spl_heap_count_basic.phpt index a14133e873..3bdd6580dc 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