Annotation of embedaddon/php/ext/bz2/tests/with_strings.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: BZ2 with strings
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("bz2")) print "skip"; ?>
                      5: --FILE--
1.1.1.2 ! misho       6: <?php // $Id$
1.1       misho       7: 
                      8: error_reporting(E_ALL);
                      9: 
                     10: # This FAILS
                     11: $blaat = <<<HEREDOC
                     12: This is some random data
                     13: HEREDOC;
                     14: 
                     15: # This Works: (so, is heredoc related)
                     16: #$blaat= 'This is some random data';
                     17: 
                     18: $blaat2 = bzdecompress(bzcompress($blaat));
                     19: 
                     20: $tests = <<<TESTS
                     21:  \$blaat === \$blaat2
                     22: TESTS;
                     23: 
                     24: include(dirname(__FILE__) . '/../../../tests/quicktester.inc');
                     25: 
                     26: --EXPECT--
                     27: OK

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