projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- added missing http_request() function stub
[m6w6/ext-http]
/
tests
/
HttpMessage_006.phpt
1
--TEST--
2
HttpMessage iterator
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkver(5);
7
?>
8
--FILE--
9
<?php
10
echo "-TEST\n";
11
12
$m = new HttpMessage("
13
GET / HTTP/1.1
14
HTTP/1.1 200 OK
15
GET /foo HTTP/1.1
16
HTTP/1.1 304 Not Modified
17
");
18
19
foreach ($m as $msg) {
20
echo "==\n", $msg;
21
}
22
23
echo "Done\n";
24
?>
25
--EXPECTF--
26
%sTEST
27
==
28
HTTP/1.1 304 Not Modified
29
==
30
GET /foo HTTP/1.1
31
==
32
HTTP/1.1 200 OK
33
==
34
GET / HTTP/1.1
35
Done