remove obsolete tests
[m6w6/ext-http] / tests / messagebody008.phpt
1 --TEST--
2 message body to callback
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $file = new http\Message\Body(fopen(__FILE__,"r"));
12 $s = "";
13 $file->toCallback(
14 function($body, $string) use (&$s) { $s.=$string; }
15 );
16 var_dump($s === (string) $file);
17
18 ?>
19 DONE
20 --EXPECT--
21 Test
22 bool(true)
23 DONE