Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Rieger committed Jan 14, 2015
1 parent 51fb035 commit 85dcaea
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/Client/CurlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,24 @@ public function testWorkWithProxyConfiguration()
);
}

public function testSslVerifyPeerCanSetOverOption()
{
$adapter = new Adapter\Curl();
$adapter->setOptions(array(
'sslverifypeer' => true
));

$expected = array(
'curloptions' => array(
CURLOPT_SSL_VERIFYPEER => true
),
);

$this->assertEquals(
$expected, $this->readAttribute($adapter, 'config')
);
}

/**
* @group ZF-7040
*/
Expand Down

0 comments on commit 85dcaea

Please sign in to comment.