Config.w32: link to libssl.lib & libcrypto.lib
[m6w6/ext-http] / tests / messagebody010.phpt
1 --TEST--
2 message body resource
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 for($i=0;$i<10;++$i) $stream = $file->getResource();
13 var_dump(is_resource($stream));
14 $stat = fstat($stream);
15 var_dump(filesize(__FILE__) === $stat["size"]);
16
17 ?>
18 DONE
19 --EXPECT--
20 Test
21 bool(true)
22 bool(true)
23 DONE