projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
248b999becb07c5c0bf47a7b465d89865bb79de8
[m6w6/ext-http]
/
tests
/
envresponse006.phpt
1
--TEST--
2
env response stream
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--FILE--
8
<?php
9
echo "Test\n";
10
11
$f = tmpfile();
12
13
$r = new http\Env\Response;
14
$r->addHeader("foo", array("bar","baz"));
15
$r->getBody()->append("foo");
16
17
$r->send($f);
18
19
rewind($f);
20
var_dump(stream_get_contents($f));
21
?>
22
Done
23
--EXPECT--
24
Test
25
string(115) "HTTP/1.1 200 OK
26
Accept-Ranges: bytes
27
Foo: bar, baz
28
ETag: "8c736521"
29
Transfer-Encoding: chunked
30
31
3
32
foo
33
0
34
35
"
36
Done