summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-07-22 16:41:41 -0300
committerGabriel Caruso <carusogabriel34@gmail.com>2018-07-22 16:41:41 -0300
commitc93aba042f8923de9d0078a769f14d8c13016476 (patch)
treec620c7bc6e22b8b92a628262c98fcbf3624e330f /ext/readline
parent8ca1f47a7a25f61fcc63313a771e6922e3258046 (diff)
downloadphp-git-c93aba042f8923de9d0078a769f14d8c13016476.tar.gz
Give a reason why the test was skipped
This will help us debug why a test was skipped in GCOV (http://gcov.php.net/viewer.php?version=PHP_HEAD&func=skip), and maybe put them to run again
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/tests/readline_read_history_error_001.phpt4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/readline/tests/readline_read_history_error_001.phpt b/ext/readline/tests/readline_read_history_error_001.phpt
index 1b39cbfb12..836c83b807 100644
--- a/ext/readline/tests/readline_read_history_error_001.phpt
+++ b/ext/readline/tests/readline_read_history_error_001.phpt
@@ -3,7 +3,9 @@ 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') || READLINE_LIB != "libedit") die("skip"); ?>
+<?php if (!extension_loaded("readline")) die('skip readline extension not loaded'); ?>
+<?php if (!function_exists('readline_read_history')) die('skip readline_read_history function does not exist'); ?>
+<?php if (!READLINE_LIB != "libedit") die('skip READLINE_LIB != "libedit"'); ?>
--FILE--
<?php
var_dump(readline_read_history());