diff --git a/Zend/tests/attributes/deprecated/004.phpt b/Zend/tests/attributes/deprecated/004.phpt index 0fb465057346d..d5fd0c7f3a8ff 100644 --- a/Zend/tests/attributes/deprecated/004.phpt +++ b/Zend/tests/attributes/deprecated/004.phpt @@ -14,12 +14,9 @@ function test() { try { test(); } catch (ErrorException $e) { - echo $e; + echo "Caught: ", $e->getMessage(), PHP_EOL; } ?> ---EXPECTF-- -ErrorException: Function test() is deprecated, convert to exception in %s:%d -Stack trace: -#0 %s(%d): {closure:%s:%d}(%d, 'Function test()...', '/home/timwolla/...', 12) -#1 {main} +--EXPECT-- +Caught: Function test() is deprecated, convert to exception