GuzzleHttp\Test\Handler\StreamHandlerTest::testUsesSystemDefaultBundle PHP Метод

testUsesSystemDefaultBundle() публичный Метод

    public function testUsesSystemDefaultBundle()
    {
        $path = $path = \GuzzleHttp\default_ca_bundle();
        $res = $this->getSendResult(['verify' => true]);
        $opts = stream_context_get_options($res->getBody()->detach());
        if (PHP_VERSION_ID < 50600) {
            $this->assertEquals($path, $opts['ssl']['cafile']);
        }
    }