summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Stevens <jonathan.stevens@moovly.com>2017-11-20 21:59:24 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-02-10 20:31:23 +0100
commite94d98e2887fee2dcfc37294a882df107d5ce3ee (patch)
tree30d264ece0e173895b9a9b0dee4d92857fc1eade
parentf57acf08aa90ab053406b6582142cc767ed05049 (diff)
downloadphp-git-e94d98e2887fee2dcfc37294a882df107d5ce3ee.tar.gz
Tests for readline() without input
-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)