fix logger
[m6w6/ext-http] / tests / encstream001.phpt
1 --TEST--
2 encoding stream chunked static
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $file = file(__FILE__);
12 $cenc = array_reduce(
13 $file,
14 function($data, $line) {
15 return $data . sprintf("%lx\r\n%s\r\n", strlen($line), $line);
16 }
17 ) . "0\r\n";
18
19 var_dump(implode("", $file) === http\Encoding\Stream\Dechunk::decode($cenc));
20
21 ?>
22 DONE
23 --EXPECT--
24 Test
25 bool(true)
26 DONE
27