cvs: pecl /lzf/tests 001.phpt 002.phpt 003.phpt

From: Date: Thu, 16 Oct 2003 21:05:31 +0000
Subject: cvs: pecl /lzf/tests 001.phpt 002.phpt 003.phpt
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-488@lists.php.net to get a copy of this message
mg Thu Oct 16 17:05:31 2003 EDT Added files: /pecl/lzf/tests 001.phpt 002.phpt 003.phpt Log: Added test files. Index: pecl/lzf/tests/001.phpt +++ pecl/lzf/tests/001.phpt --TEST-- Check for lzf presence --SKIPIF-- <?php if (!extension_loaded("lzf")) print "skip"; ?> --POST-- --GET-- --INI-- --FILE-- <?php echo "lzf extension is available"; /* you can add regression tests for your extension here the output of your test code has to be equal to the text in the --EXPECT-- section below for the tests to pass, differences between the output and the expected text are interpreted as failure see php4/README.TESTING for further information on writing regression tests */ ?> --EXPECT-- lzf extension is available Index: pecl/lzf/tests/002.phpt +++ pecl/lzf/tests/002.phpt --TEST-- lzf_compress() --SKIPIF-- <?php if (!extension_loaded("lzf")) print "skip"; ?> <?php if (!function_exists("base64_encode")) print "skip"; ?> --POST-- --GET-- --INI-- --FILE-- <?php $compressed = lzf_compress("This is test of LZF extension"); echo base64_encode($compressed); ?> --EXPECT-- BFRoaXMgIAIUdGVzdCBvZiBMWkYgZXh0ZW5zaW9u Index: pecl/lzf/tests/003.phpt +++ pecl/lzf/tests/003.phpt --TEST-- lzf_decompress() --SKIPIF-- <?php if (!extension_loaded("lzf")) print "skip"; ?> <?php if (!function_exists("base64_decode")) print "skip"; ?> --POST-- --GET-- --INI-- --FILE-- <?php $decompressed = lzf_decompress(base64_decode("BFRoaXMgIAIUdGVzdCBvZiBMWkYgZXh0ZW5zaW9u")); echo $decompressed; ?> --EXPECT-- This is test of LZF extension

« previous php.pecl.cvs (#488) next »