xref: /dokuwiki/_test/tests/inc/httpclient_https_proxy.test.php (revision 605810ee2fba6c1a323e320dde2c78747b3e5f3a)
11ea7a6baSAndreas Gohr<?php
21ea7a6baSAndreas Gohrrequire_once dirname(__FILE__) . '/httpclient_http_proxy.test.php';
31ea7a6baSAndreas Gohr
4*605810eeSAndreas Gohrclass httpclient_https_proxy_test extends httpclient_http_proxy_test
5*605810eeSAndreas Gohr{
6*605810eeSAndreas Gohr    protected $url = 'http://httpbingo.org/user-agent';
71ea7a6baSAndreas Gohr
8*605810eeSAndreas Gohr    public function setUp(): void
9*605810eeSAndreas Gohr    {
101ea7a6baSAndreas Gohr        // skip tests when this PHP has no SSL support
111ea7a6baSAndreas Gohr        $transports = stream_get_transports();
121ea7a6baSAndreas Gohr        if (!in_array('ssl', $transports)) {
131ea7a6baSAndreas Gohr            $this->markTestSkipped('No SSL support available.');
141ea7a6baSAndreas Gohr        }
151ea7a6baSAndreas Gohr        parent::setUp();
161ea7a6baSAndreas Gohr    }
171ea7a6baSAndreas Gohr}
18