+ $this->r->send(null);
+ $this->assertNotEquals($c, array_map($f, $this->r->getResponseMessage()->getCookies()));
+ }
+
+ function testSsl() {
+ $this->r->setRequest(new http\Client\Request("GET", "https://twitter.com/"));
+ $this->r->setSslOptions(array("verify_peer" => true));
+ $this->r->addSslOptions(array("verify_host" => 2));
+ $this->assertEquals(
+ array(
+ "verify_peer" => true,
+ "verify_host" => 2,
+ ),
+ $this->r->getSslOptions()
+ );
+ $this->r->send();
+ $ti = $this->r->getTransferInfo();
+ $this->assertArrayHasKey("ssl_engines", $ti);
+ $this->assertGreaterThan(0, count($ti["ssl_engines"]));