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_001.phpt
diff --git
a/tests/HttpMessage_001.phpt
b/tests/HttpMessage_001.phpt
index d7e7ba9dd347f4f8e01a2fd5f3ef29544045ebc7..6c08b8aaa64503770c3c40aec5f3f23bbb3f2072 100644
(file)
--- a/
tests/HttpMessage_001.phpt
+++ b/
tests/HttpMessage_001.phpt
@@
-1,9
+1,9
@@
--TEST--
--TEST--
-HttpMessage
simple redirects
+HttpMessage
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-
(5 > (int) PHP_VERSION) and die('skip PHP5 is required for Http classes'
);
+
checkver(5
);
?>
--FILE--
<?php
?>
--FILE--
<?php
@@
-26,10
+26,7
@@
var_dump($m->toString());
var_dump(HttpMessage::fromString($m->toString())->toString());
?>
--EXPECTF--
var_dump(HttpMessage::fromString($m->toString())->toString());
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
-string(1) "X"
+%sstring(1) "X"
string(134) "HTTP/1.1 301
Location: /anywhere
HTTP/1.1 302
string(134) "HTTP/1.1 301
Location: /anywhere
HTTP/1.1 302