projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- bump version
[m6w6/ext-http]
/
tests
/
HttpRequest_003.phpt
diff --git
a/tests/HttpRequest_003.phpt
b/tests/HttpRequest_003.phpt
index cd6edd07b880b065ad3fafb5ff7fe392e9423805..d432c4358c0334468427f0d2a51beab91acea254 100644
(file)
--- a/
tests/HttpRequest_003.phpt
+++ b/
tests/HttpRequest_003.phpt
@@
-3,16
+3,17
@@
HttpRequest SSL
--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);
+checkurl('arweb.info');
?>
--FILE--
<?php
?>
--FILE--
<?php
+echo "-TEST\n";
$r = new HttpRequest('https://ssl.arweb.info/iworks/data.txt');
$r->send();
var_dump($r->getResponseBody());
?>
--EXPECTF--
$r = new HttpRequest('https://ssl.arweb.info/iworks/data.txt');
$r->send();
var_dump($r->getResponseBody());
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
string(10) "1234567890"
string(10) "1234567890"
+