From 95a36e8e0f9555288f1320ff8b090683801a2b93 Mon Sep 17 00:00:00 2001 From: Rodrigo Prado Date: Tue, 7 Nov 2017 21:45:53 -0200 Subject: [PATCH] Create readline_wrongparam_002.phpt Check the function readline with 2 parameters (wrong because the function expects only one parameter). - lines from 221 to 223 - readline.c User Group: PHPSP #phptestfestbrasil --- ext/readline/tests/readline_wrongparam_002.phpt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ext/readline/tests/readline_wrongparam_002.phpt diff --git a/ext/readline/tests/readline_wrongparam_002.phpt b/ext/readline/tests/readline_wrongparam_002.phpt new file mode 100644 index 0000000000..6df6d2a41c --- /dev/null +++ b/ext/readline/tests/readline_wrongparam_002.phpt @@ -0,0 +1,15 @@ +--TEST-- +Check the function readline with 2 parameters (wrong because the function expects only one parameter). +- 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 at most 1 parameter, 2 given in %s on line %d