public function testCertificateInfo() { $curl = new Curl(); if (!$curl->isCertificateInfoSupported()) { $this->markTestSkipped('Certificate info is not supported'); } $curl->setMethod('GET'); $curl->setOption(CURLOPT_URL, 'https://httpbin.org/get?foo=23&bar=42'); $curl->execute(); $this->assertTrue(is_array($curl->getCertificateInfo())); }