projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
fix build with libicu-dev not providing icu-config
[m6w6/ext-http]
/
tests
/
messagebody007.phpt
1
--TEST--
2
message body to stream
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
$file->toStream($f = fopen("php://temp", "w"));
13
fseek($f, 0, SEEK_SET);
14
var_dump(file_get_contents(__FILE__) === stream_get_contents($f));
15
16
?>
17
DONE
18
--EXPECT--
19
Test
20
bool(true)
21
DONE