summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2014-11-23 17:22:02 -0800
committerStanislav Malyshev <stas@php.net>2014-11-23 17:22:02 -0800
commit24cd25824eb18c690f3be646991bfbd9f73e6504 (patch)
tree83ea6ae3e0d28edf3b156c6608b28e46f55d8586
parentfa76fa8e3255842ec424da75f6dc50d5ccfaffaf (diff)
parent2c6ecbbea110328970ea4265a1b0245e692f8f3f (diff)
downloadphp-git-24cd25824eb18c690f3be646991bfbd9f73e6504.tar.gz
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
-rw-r--r--ext/readline/tests/readline_read_history_error_001.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/readline/tests/readline_read_history_error_001.phpt b/ext/readline/tests/readline_read_history_error_001.phpt
new file mode 100644
index 0000000000..0a65a66d5c
--- /dev/null
+++ b/ext/readline/tests/readline_read_history_error_001.phpt
@@ -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)