projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
ensure options are applied before the headers are set
[m6w6/ext-http]
/
tests
/
client012.phpt
diff --git
a/tests/client012.phpt
b/tests/client012.phpt
index 71e5081a5f938220b3f7639ef9bd08702b756125..e4c188c7ffd44cd8bac36c5567e859ad5ea2e4a3 100644
(file)
--- a/
tests/client012.phpt
+++ b/
tests/client012.phpt
@@
-3,6
+3,7
@@
client ssl
--SKIPIF--
<?php
include "skipif.inc";
--SKIPIF--
<?php
include "skipif.inc";
+skip_online_test();
?>
--FILE--
<?php
?>
--FILE--
<?php
@@
-11,12
+12,12
@@
echo "Test\n";
$client = new http\Client;
$client = new http\Client;
-$client->setSslOptions(array("verify
_
peer" => true));
-$client->addSslOptions(array("verify
_
host" => 2));
+$client->setSslOptions(array("verifypeer" => true));
+$client->addSslOptions(array("verifyhost" => 2));
var_dump(
array(
var_dump(
array(
- "verify
_
peer" => true,
- "verify
_
host" => 2,
+ "verifypeer" => true,
+ "verifyhost" => 2,
) === $client->getSslOptions()
);
) === $client->getSslOptions()
);