示例#1
0
文件: CurlTest.php 项目: blar/curl
 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()));
 }