summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/readline/tests/readline_without_input.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/readline/tests/readline_without_input.phpt b/ext/readline/tests/readline_without_input.phpt
new file mode 100644
index 0000000000..8d5720e132
--- /dev/null
+++ b/ext/readline/tests/readline_without_input.phpt
@@ -0,0 +1,15 @@
+--TEST--
+readline() function - without input
+--CREDITS--
+Jonathan Stevens <info at jonathanstevens dot be>
+User Group: PHP-WVL & PHPGent #PHPTestFest
+--SKIPIF--
+<?php if (!extension_loaded("readline") || !function_exists('readline') || die("skip"); ?>
+--FILE--
+<?php
+var_dump(readline());
+var_dump(readline('Prompt:'));
+?>
+--EXPECT--
+bool(false)
+bool(false)