1--TEST-- 2readline_add_history(): Basic test 3--SKIPIF-- 4<?php if (!extension_loaded("readline") || !function_exists('readline_list_history')) die("skip"); ?> 5--FILE-- 6<?php 7 8var_dump(readline_add_history('foo')); 9var_dump(readline_list_history()); 10var_dump(readline_add_history(NULL)); 11var_dump(readline_list_history()); 12var_dump(readline_clear_history()); 13var_dump(readline_add_history()); 14 15?> 16--EXPECTF-- 17bool(true) 18array(1) { 19 [0]=> 20 string(3) "foo" 21} 22bool(true) 23array(2) { 24 [0]=> 25 string(3) "foo" 26 [1]=> 27 string(0) "" 28} 29bool(true) 30 31Warning: readline_add_history() expects exactly 1 parameter, 0 given in %s on line %d 32NULL 33