diff options
Diffstat (limited to 'ext/readline/tests/readline_callback_handler_remove_001.phpt')
-rw-r--r-- | ext/readline/tests/readline_callback_handler_remove_001.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/readline/tests/readline_callback_handler_remove_001.phpt b/ext/readline/tests/readline_callback_handler_remove_001.phpt new file mode 100644 index 0000000..768041a --- /dev/null +++ b/ext/readline/tests/readline_callback_handler_remove_001.phpt @@ -0,0 +1,20 @@ +--TEST-- +readline_callback_handler_remove(): Basic test +--SKIPIF-- +<?php if (!extension_loaded("readline") || !function_exists('readline_callback_handler_remove')) die("skip"); ?> +--FILE-- +<?php + +var_dump(readline_callback_handler_remove()); +var_dump(readline_callback_handler_install('testing: ', 'foo')); + +function foo() { } +var_dump(readline_callback_handler_install('testing: ', 'foo')); +var_dump(readline_callback_handler_remove()); + +?> +--EXPECT-- +bool(false) +testing: bool(true) +testing: bool(true) +bool(true) |