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)); }