xref: /dokuwiki/_test/tests/inc/httpclient_https.test.php (revision f61996974881e45b6ba399d75c080481d66c4214)
1f8369d7dSTobias Sarnowski<?php
2f8369d7dSTobias Sarnowski
3f8369d7dSTobias Sarnowskirequire_once dirname(__FILE__).'/httpclient_http.test.php';
4f8369d7dSTobias Sarnowski
5f8369d7dSTobias Sarnowskiclass httpclient_https_test extends httpclient_http_test {
6f8369d7dSTobias Sarnowski    protected $server = 'https://httpbin.org/';
7*f6199697SAndreas Gohr
8*f6199697SAndreas Gohr    public function setUp(){
9*f6199697SAndreas Gohr        // skip tests when this PHP has no SSL support
10*f6199697SAndreas Gohr        $transports = stream_get_transports();
11*f6199697SAndreas Gohr        if(!in_array('ssl',$transports)){
12*f6199697SAndreas Gohr            $this->markTestSkipped('No SSL support available.');
13*f6199697SAndreas Gohr        }
14*f6199697SAndreas Gohr        parent::setUp();
15*f6199697SAndreas Gohr    }
16f8369d7dSTobias Sarnowski}
17f8369d7dSTobias Sarnowski//Setup VIM: ex: et ts=4 :
18