diff options
author | Felipe Pena <felipe@php.net> | 2008-11-21 21:00:16 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-11-21 21:00:16 +0000 |
commit | 8c9626395c0c87cae04f680c17c852ea0e0b2d0f (patch) | |
tree | 013c06ed10d05612f11b59ee75a5e861a390ada5 /ext/readline/tests/readline_write_history_001.phpt | |
parent | 3b06b39d5403496cd920aa2fba4c39edebb4652c (diff) | |
download | php-git-8c9626395c0c87cae04f680c17c852ea0e0b2d0f.tar.gz |
- New tests
Diffstat (limited to 'ext/readline/tests/readline_write_history_001.phpt')
-rw-r--r-- | ext/readline/tests/readline_write_history_001.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/readline/tests/readline_write_history_001.phpt b/ext/readline/tests/readline_write_history_001.phpt new file mode 100644 index 0000000000..b03941300c --- /dev/null +++ b/ext/readline/tests/readline_write_history_001.phpt @@ -0,0 +1,24 @@ +--TEST-- +readline_write_history(): Basic test +--FILE-- +<?php + +$name = tempnam('/tmp', 'readline.tmp'); + +readline_add_history('foo'); +readline_add_history(''); +readline_add_history(1); +readline_add_history(NULL); +readline_write_history($name); + +var_dump(file_get_contents($name)); + +unlink($name); + +?> +--EXPECT-- +string(8) "foo + +1 + +" |