From 1d6ec52a052520f513d6ed780c00fe511dc4cfce Mon Sep 17 00:00:00 2001 From: Liam Wiltshire Date: Sat, 23 Sep 2017 03:06:30 +0000 Subject: [PATCH] Test readline error is handled properly --- ext/readline/tests/readline_error.phpt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ext/readline/tests/readline_error.phpt diff --git a/ext/readline/tests/readline_error.phpt b/ext/readline/tests/readline_error.phpt new file mode 100644 index 0000000000..7607df0c8b --- /dev/null +++ b/ext/readline/tests/readline_error.phpt @@ -0,0 +1,11 @@ +--TEST-- +readline - test passing too many args returns false +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: readline() expects at most 1 parameter, 2 given in %s on line %d +bool(false)