1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext/readline/tests/readline_without_input.phpt
T
Peter Kokot eaddc9f7d9 Fix failing tests for readline() without input
If PHP readline extension is using libedit or readline the output is
different with the readline library also the prompt is output.
2019-02-10 22:31:32 +01:00

16 lines
361 B
PHP

--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:'));
?>
--EXPECTF--
bool(false)
%Abool(false)