Skip to content

Commit

Permalink
skip SSL tests whn no SSL support in PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Apr 26, 2012
1 parent a1d9de5 commit f619969
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _test/tests/inc/httpclient_https.test.php
Expand Up @@ -4,5 +4,14 @@

class httpclient_https_test extends httpclient_http_test {
protected $server = 'https://httpbin.org/';

public function setUp(){
// skip tests when this PHP has no SSL support
$transports = stream_get_transports();
if(!in_array('ssl',$transports)){
$this->markTestSkipped('No SSL support available.');
}
parent::setUp();
}
}
//Setup VIM: ex: et ts=4 :

0 comments on commit f619969

Please sign in to comment.