projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add test file to package.xml
[m6w6/ext-http]
/
tests
/
HttpResponse_002.phpt
diff --git
a/tests/HttpResponse_002.phpt
b/tests/HttpResponse_002.phpt
index 72c22bcd574096a1e294e4503219e8e90a4bd585..bbfa30f161826ca97998acd45a9792e771477b9a 100644
(file)
--- a/
tests/HttpResponse_002.phpt
+++ b/
tests/HttpResponse_002.phpt
@@
-3,9
+3,9
@@
HttpResponse - send gzipped file
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(
5
);
+checkmin(
"5.2.5"
);
checkcgi();
checkcgi();
-
checkext('zlib'
);
+
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support"
);
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
@@
-16,10
+16,10
@@
HttpResponse::setFile(__FILE__);
HttpResponse::send();
?>
--EXPECTF--
HttpResponse::send();
?>
--EXPECTF--
-X-Powered-By: PHP/%
s
-Content-Type: %
s
+X-Powered-By: PHP/%
a
+Content-Type: %
a
Accept-Ranges: bytes
Content-Encoding: gzip
Vary: Accept-Encoding
Accept-Ranges: bytes
Content-Encoding: gzip
Vary: Accept-Encoding
-%
s
+%
a