com php-src: Fix failing readline() basic test: ext/readline/te sts/readline_basic.phpt
| From: | Peter Kokot | Date: | Sat, 09 Feb 2019 22:40:42 +0000 |
| Subject: | com php-src: Fix failing readline() basic test: ext/readline/te sts/readline_basic.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104506@lists.php.net to get a copy of this message | ||
Commit: 4ae5691a60a4aaae86776205b3e938a8fecc66a7
Author: Peter Kokot <peterkokot@gmail.com> Sat, 9 Feb 2019 12:18:13 +0100
Parents: 31b2dcb26ccf00e1e3300f98892c62f3913ce651
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4ae5691a60a4aaae86776205b3e938a8fecc66a7
Log:
Fix failing readline() basic test
Test for readline() basic doesn't seem to capture the STDIN in the
output for some systems such as macOS and Windows.
Changed paths:
M ext/readline/tests/readline_basic.phpt
Diff:
diff --git a/ext/readline/tests/readline_basic.phpt b/ext/readline/tests/readline_basic.phpt
index aae3002..499601a 100644
--- a/ext/readline/tests/readline_basic.phpt
+++ b/ext/readline/tests/readline_basic.phpt
@@ -14,5 +14,4 @@ var_dump(readline('Enter some text:'));
--STDIN--
I love PHP
--EXPECTF--
-Enter some text:I love PHP
-string(10) "I love PHP"
+%Astring(10) "I love PHP"