xref: /PHP-7.4/ext/bz2/tests/with_strings.phpt (revision 26dfce7f)
1--TEST--
2BZ2 with strings
3--SKIPIF--
4<?php if (!extension_loaded("bz2")) print "skip"; ?>
5--FILE--
6<?php
7
8error_reporting(E_ALL);
9
10# This FAILS
11$blaat = <<<HEREDOC
12This is some random data
13HEREDOC;
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
22TESTS;
23
24include(__DIR__ . '/../../../tests/quicktester.inc');
25--EXPECT--
26OK
27