mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
Merge branch 'pull-request/856' into PHP-5.5
* pull-request/856: Add my information to this test Add a test for the exception cases of readline_read_history
This commit is contained in:
commit
24cd25824e
14
ext/readline/tests/readline_read_history_error_001.phpt
Normal file
14
ext/readline/tests/readline_read_history_error_001.phpt
Normal file
@ -0,0 +1,14 @@
|
||||
--TEST--
|
||||
readline_read_history() function - Error cases
|
||||
--CREDITS--
|
||||
Pedro Manoel Evangelista <pedro.evangelista at gmail dot com>
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("readline") || !function_exists('readline_read_history')) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(readline_read_history());
|
||||
var_dump(readline_read_history('nofile'));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
Loading…
Reference in New Issue
Block a user