Skip to content
Snippets Groups Projects
Commit f6199697 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

skip SSL tests whn no SSL support in PHP

parent a1d9de52
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,14 @@ require_once dirname(__FILE__).'/httpclient_http.test.php';
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment