projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix tests
[m6w6/ext-http]
/
tests
/
HttpMessage_003.phpt
diff --git
a/tests/HttpMessage_003.phpt
b/tests/HttpMessage_003.phpt
index 79d0dc66dc69e638f4f3c857798581d931e81056..831b4da888d809f06cc8a63631d6e6107ec464e7 100644
(file)
--- a/
tests/HttpMessage_003.phpt
+++ b/
tests/HttpMessage_003.phpt
@@
-1,9
+1,9
@@
--TEST--
--TEST--
-HttpMessage impl
mene
ts Serializable, Countable
+HttpMessage impl
emen
ts Serializable, Countable
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(
5
);
+checkmin(
"5.2.5"
);
?>
--FILE--
<?php
?>
--FILE--
<?php
@@
-31,37
+31,40
@@
var_dump($m->count());
echo "Done\n";
?>
--EXPECTF--
echo "Done\n";
?>
--EXPECTF--
-%
s
TEST
+%
a
TEST
int(3)
int(3)
-string(1
09
) "HTTP/1.1 301
+string(1
48
) "HTTP/1.1 301
Location: /anywhere
HTTP/1.1 302
Location: /somewhere
HTTP/1.1 200
Location: /anywhere
HTTP/1.1 302
Location: /somewhere
HTTP/1.1 200
+X-Original-Transfer-Encoding: chunked
Content-Length: 1
X
"
object(HttpMessage)#%d (%d) {
Content-Length: 1
X
"
object(HttpMessage)#%d (%d) {
- ["type
:protected"
]=>
+ ["type
%s
]=>
int(2)
int(2)
- ["httpVersion:protected"]=>
- float(1.1)
- ["responseCode:protected"]=>
- int(200)
- ["responseStatus:protected"]=>
- string(2) "Ok"
- ["requestMethod:protected"]=>
+ ["body%s]=>
+ string(0) ""
+ ["requestMethod%s]=>
string(0) ""
string(0) ""
- ["requestUr
i:protected"
]=>
+ ["requestUr
l%s
]=>
string(0) ""
string(0) ""
- ["headers:protected"]=>
+ ["responseStatus%s]=>
+ string(2) "Ok"
+ ["responseCode%s]=>
+ int(200)
+ ["httpVersion%s]=>
+ float(1.1)
+ ["headers%s]=>
array(1) {
["Server"]=>
string(9) "Funky/1.0"
}
array(1) {
["Server"]=>
string(9) "Funky/1.0"
}
- ["
body:protected"
]=>
- string(0) ""
+ ["
parentMessage%s
]=>
+ NULL
}
int(1)
Done
}
int(1)
Done