cvs: php4 /ext/bz2/tests .cvsignore with_strings.phpt
| From: | Jeroen van Wolffelaar | Date: | Thu, 01 Nov 2001 08:51:30 +0000 |
| Subject: | cvs: php4 /ext/bz2/tests .cvsignore with_strings.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8043@lists.php.net to get a copy of this message | ||
jeroen Thu Nov 1 03:51:30 2001 EDT
Added files:
/php4/ext/bz2/tests .cvsignore with_strings.phpt
Log:
Add (only for strings now) tests for bz2.
# And yes, they fail, they also fail with 4.0.6 and latest RC. Working on that.
# The problem is heredoc related, maybe heredoc doesn't set the size
# correctly?
Index: php4/ext/bz2/tests/.cvsignore
+++ php4/ext/bz2/tests/.cvsignore
*.exp
*.out
*.php
phpt.*
Index: php4/ext/bz2/tests/with_strings.phpt
+++ php4/ext/bz2/tests/with_strings.phpt
--TEST--
BZ2 with strings
--POST--
--GET--
--FILE--
<?php // $Id: with_strings.phpt,v 1.1 2001/11/01 08:51:30 jeroen Exp $
error_reporting(E_ALL);
# This FAILS
$blaat = <<<HEREDOC
This is some random data
HEREDOC;
# This Works: (so, is heredoc related)
#$blaat= 'This is some random data';
$blaat2 = bzdecompress(bzcompress($blaat));
$tests = <<<TESTS
\$blaat === \$blaat2
TESTS;
include('../../../tests/quicktester.inc');
--EXPECT--
OK