summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2014-11-23 17:26:35 -0800
committerStanislav Malyshev <stas@php.net>2014-11-23 17:26:35 -0800
commitf782d6710d5f065ef391aefa94ea3f56b5b6e962 (patch)
tree575e30e1c8f8a1700016fb922023332be946f9de /ext/readline
parent3e0591a3d0aae084d5d535002f7a99ed2548f51a (diff)
parenta8dfb33db8098e7a34e0033c3113f1c1b0ff9f61 (diff)
downloadphp-git-f782d6710d5f065ef391aefa94ea3f56b5b6e962.tar.gz
Merge branch 'PHP-5.6'
* PHP-5.6: test to function addcslashes test Test PHP Init Fail Without Params Add my information to this test Add a test for the exception cases of readline_read_history added some tests to datetime and dateinterval functions added various tests for XSLTProcessor and one test for iconv extension teste basico da funcao timezone_version_get
Diffstat (limited to 'ext/readline')
-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)