Annotation of embedaddon/php/ext/readline/tests/readline_write_history_001.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: readline_write_history(): Basic test
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("readline") || !function_exists('readline_add_history')) die("skip"); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: $name = tempnam('/tmp', 'readline.tmp');
        !             9: 
        !            10: readline_add_history('foo');
        !            11: readline_add_history('');
        !            12: readline_add_history(1);
        !            13: readline_add_history(NULL);
        !            14: readline_write_history($name);
        !            15: 
        !            16: var_dump(file_get_contents($name));
        !            17: 
        !            18: unlink($name);
        !            19: 
        !            20: ?>
        !            21: --EXPECT--
        !            22: string(8) "foo
        !            23: 
        !            24: 1
        !            25: 
        !            26: "

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>