From 205e0ba81d84bf91bdae13039a77db5fa1344dd4 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 21 Nov 2015 05:01:51 -0800 Subject: [PATCH] Update test script --- Zend/tests/bug70944.phpt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Zend/tests/bug70944.phpt b/Zend/tests/bug70944.phpt index 7584384a41..192fd6d501 100644 --- a/Zend/tests/bug70944.phpt +++ b/Zend/tests/bug70944.phpt @@ -10,7 +10,7 @@ try { throw $e; } } catch (Exception $e) { - var_dump($e->getMessage()); + var_dump((string)$e); } try { @@ -21,9 +21,17 @@ try { throw new Exception("Dummy", 0, $e); } } catch (Exception $e) { - var_dump($e->getMessage()); + var_dump((string)$e); } ?> ---EXPECT-- -string(3) "Foo" -string(5) "Dummy" +--EXPECTF-- +string(%d) "exception 'Exception' with message 'Foo' in %sbug70944.php:%d +Stack trace: +#0 {main}" +string(%d) "exception 'Exception' with message 'Foo' in %sbug70944.php:%d +Stack trace: +#0 {main} + +Next exception 'Exception' with message 'Dummy' in %sbug70944.php:%d +Stack trace: +#0 {main}" -- 2.40.0