aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_test/tests/inc/httpclient_https.test.php
blob: 298d4f6f4841b1b7270eab078df6ba6f0c22e3f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
require_once dirname(__FILE__) . '/httpclient_http.test.php';

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

    public function setUp(): void
    {
        // 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();
    }
}