cvs: php4 /ext/bz2/tests with_files.phpt
| From: | Jani Taskinen | Date: | Thu, 04 Apr 2002 13:58:24 +0000 |
| Subject: | cvs: php4 /ext/bz2/tests with_files.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10856@lists.php.net to get a copy of this message | ||
sniper Thu Apr 4 08:58:24 2002 EDT
Added files:
/php4/ext/bz2/tests with_files.phpt
Log:
added test case for file handling in bz2
Index: php4/ext/bz2/tests/with_files.phpt
+++ php4/ext/bz2/tests/with_files.phpt
--TEST--
BZ2 with files
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--POST--
--GET--
--FILE--
<?php // $Id: with_files.phpt,v 1.1 2002/04/04 13:58:23 sniper Exp $
error_reporting(E_ALL);
$filename = "testfile.bz2";
$str = "This is a test string.\n";
$bz = bzopen($filename, "w");
bzwrite($bz, $str);
bzclose($bz);
$bz = bzopen($filename, "r");
print bzread($bz, 10);
print bzread($bz);
bzclose($bz);
unlink($filename);
--EXPECT--
This is a test string.