com php-src: readline - add basic test: ext/readline/tests/read line_basic.phpt

From: Date: Sat, 09 Feb 2019 00:21:52 +0000
Subject: com php-src: readline - add basic test: ext/readline/tests/read line_basic.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104491@lists.php.net to get a copy of this message
Commit: 0506c0224a485812e7f675cb808432f5f98a4412 Author: Joel Clermont <jclermont@gmail.com> Tue, 12 Sep 2017 19:39:47 -0500 Committer: Peter Kokot <peterkokot@gmail.com> Sat, 9 Feb 2019 01:21:52 +0100 Parents: dc1937e386082dddbcab612889ad8cb15df88b73 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0506c0224a485812e7f675cb808432f5f98a4412 Log: readline - add basic test Changed paths: A ext/readline/tests/readline_basic.phpt Diff: diff --git a/ext/readline/tests/readline_basic.phpt b/ext/readline/tests/readline_basic.phpt new file mode 100644 index 0000000..aae3002 --- /dev/null +++ b/ext/readline/tests/readline_basic.phpt @@ -0,0 +1,18 @@ +--TEST-- +readline(): Basic test +--CREDITS-- +Milwaukee PHP User Group +#PHPTestFest2017 +--SKIPIF-- +<?php if (!extension_loaded("readline")) die("skip"); ?> +--FILE-- +<?php + +var_dump(readline('Enter some text:')); + +?> +--STDIN-- +I love PHP +--EXPECTF-- +Enter some text:I love PHP +string(10) "I love PHP"

« previous php.cvs (#104491) next »