]> granicus.if.org Git - php/commitdiff
readline - add basic test
authorJoel Clermont <jclermont@gmail.com>
Wed, 13 Sep 2017 00:39:47 +0000 (19:39 -0500)
committerPeter Kokot <peterkokot@gmail.com>
Sat, 9 Feb 2019 00:21:52 +0000 (01:21 +0100)
ext/readline/tests/readline_basic.phpt [new file with mode: 0644]

diff --git a/ext/readline/tests/readline_basic.phpt b/ext/readline/tests/readline_basic.phpt
new file mode 100644 (file)
index 0000000..aae3002
--- /dev/null
@@ -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"