Skip to content

Commit 02ec5a9

Browse files
committed
Fix test expectation
1 parent d8b3b28 commit 02ec5a9

File tree

1 file changed

+3
-6
lines changed
  • Zend/tests/attributes/deprecated

1 file changed

+3
-6
lines changed

Zend/tests/attributes/deprecated/004.phpt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ function test() {
1414
try {
1515
test();
1616
} catch (ErrorException $e) {
17-
echo $e;
17+
echo "Caught: ", $e->getMessage(), PHP_EOL;
1818
}
1919

2020
?>
21-
--EXPECTF--
22-
ErrorException: Function test() is deprecated, convert to exception in %s:%d
23-
Stack trace:
24-
#0 %s(%d): {closure:%s:%d}(%d, 'Function test()...', '/home/timwolla/...', 12)
25-
#1 {main}
21+
--EXPECT--
22+
Caught: Function test() is deprecated, convert to exception

0 commit comments

Comments
 (0)