diff options
Diffstat (limited to 'tests/output/ob_015.phpt')
-rw-r--r-- | tests/output/ob_015.phpt | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/tests/output/ob_015.phpt b/tests/output/ob_015.phpt index 2acdb40d0a..2bc08687d7 100644 --- a/tests/output/ob_015.phpt +++ b/tests/output/ob_015.phpt @@ -3,20 +3,13 @@ output buffering - failure --FILE-- <?php ob_start("str_rot13", 1); -echo "foo\n"; -// str_rot13 expects 1 param and returns NULL when passed 2 params. -// It is invoked with 2 params when used as an OB callback. -// Therefore, there will be no data in the buffer. This is expected: see bug 46900. +try { + echo "foo\n"; +} catch (TypeError $e) { + echo $e->getMessage(), "\n"; +} ob_end_flush(); - -// Show the error. -print_r(error_get_last()); ?> ---EXPECTF-- -Array -( - [type] => 2 - [message] => str_rot13() expects exactly 1 parameter, 2 given - [file] => %s - [line] => 7 -) +--EXPECT-- +foo +str_rot13() expects exactly 1 parameter, 2 given |