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