com php-src: Tests for readline() without input: ext/readline/t ests/readline_without_input.phpt
| From: | Peter Kokot | Date: | Sun, 10 Feb 2019 19:31:23 +0000 |
| Subject: | com php-src: Tests for readline() without input: ext/readline/t ests/readline_without_input.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104519@lists.php.net to get a copy of this message | ||
Commit: e94d98e2887fee2dcfc37294a882df107d5ce3ee
Author: Jonathan Stevens <jonathan.stevens@moovly.com> Mon, 20 Nov 2017 21:59:24
+0100
Committer: Peter Kokot <peterkokot@gmail.com> Sun, 10 Feb 2019 20:31:23 +0100
Parents: f57acf08aa90ab053406b6582142cc767ed05049
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e94d98e2887fee2dcfc37294a882df107d5ce3ee
Log:
Tests for readline() without input
Changed paths:
A ext/readline/tests/readline_without_input.phpt
Diff:
diff --git a/ext/readline/tests/readline_without_input.phpt
b/ext/readline/tests/readline_without_input.phpt
new file mode 100644
index 0000000..8d5720e
--- /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)