From 7ae67f057ed0adfc49a44189092f9b473f0442cb Mon Sep 17 00:00:00 2001 From: Rodrigo Prado Date: Tue, 7 Nov 2017 21:44:37 -0200 Subject: [PATCH] Test readline function : wrong parameter (array) Test readline function : wrong parameter (array) - lines from 221 to 223 - readline.c User Group: PHPSP #phptestfestbrasil --- ext/readline/tests/readline_wrongparam_001.phpt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ext/readline/tests/readline_wrongparam_001.phpt diff --git a/ext/readline/tests/readline_wrongparam_001.phpt b/ext/readline/tests/readline_wrongparam_001.phpt new file mode 100644 index 0000000000..43bbc4a87a --- /dev/null +++ b/ext/readline/tests/readline_wrongparam_001.phpt @@ -0,0 +1,16 @@ +--TEST-- +Test readline function : wrong parameter (array) +- lines from 221 to 223 - readline.c +--CREDITS-- +Rodrigo Prado de Jesus +User Group: PHPSP #phptestfestbrasil +http://phpsp.org.br/ +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: readline() expects parameter 1 to be string, array given in %s on line %d