From 34be1cf2aabfec26fecb994eedcbd208efc5bbd3 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 25 May 2017 16:02:16 +0300 Subject: [PATCH] Fixed test (backtrace was changed) --- ext/spl/tests/spl_heap_count_basic.phpt | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 -- 2.40.0