remove dead code
[m6w6/ext-http] / tests / encstream005.phpt
1 --TEST--
2 encoding stream zlib static
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $file = file_get_contents(__FILE__);
12 var_dump($file ===
13 http\Encoding\Stream\Inflate::decode(
14 http\Encoding\Stream\Deflate::encode(
15 $file, http\Encoding\Stream\Deflate::TYPE_GZIP
16 )
17 )
18 );
19 var_dump($file ===
20 http\Encoding\Stream\Inflate::decode(
21 http\Encoding\Stream\Deflate::encode(
22 $file, http\Encoding\Stream\Deflate::TYPE_ZLIB
23 )
24 )
25 );
26 var_dump($file ===
27 http\Encoding\Stream\Inflate::decode(
28 http\Encoding\Stream\Deflate::encode(
29 $file, http\Encoding\Stream\Deflate::TYPE_RAW
30 )
31 )
32 );
33
34 ?>
35 DONE
36 --EXPECT--
37 Test
38 bool(true)
39 bool(true)
40 bool(true)
41 DONE