mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Test for readline() basic doesn't seem to capture the STDIN in the output for some systems such as macOS and Windows.
17 lines
273 B
PHP
17 lines
273 B
PHP
--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--
|
|
%Astring(10) "I love PHP"
|