Example #1
0
 public function testAddsLocalSslCertificate()
 {
     $config = new CurlConfig('foo');
     $url = 'example.com';
     $this->assertFalse($config->hasLocalSslCertificate($url));
     $config->addLocalSslCertificate($url, 'cert.pem');
     $this->assertTrue($config->hasLocalSslCertificate($url));
     $this->assertSame('cert.pem', $config->getLocalSslCertificate($url));
 }