Skip to content

Commit

Permalink
Test expired and revoked SSL certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Aug 11, 2013
1 parent 59c0140 commit af873c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Transport/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,20 @@ public function testHTTPS() {
$this->assertEmpty($result['args']);
}

/**
* @expectedException Requests_Exception
*/
public function testExpiredHTTPS() {
$request = Requests::get('https://testssl-expire.disig.sk/index.en.html', array(), $this->getOptions());
}

/**
* @expectedException Requests_Exception
*/
public function testRevokedHTTPS() {
$request = Requests::get('https://testssl-revoked.disig.sk/index.en.html', array(), $this->getOptions());
}

/**
* @expectedException Requests_Exception
*/
Expand Down

0 comments on commit af873c1

Please sign in to comment.