get('/'); // then $this->assertSelectRegExp('title', '/Google/', 1, $response); } public function testShouldGetGooglePageAndCheckHttpsCertificate() { // given $cut = new PCurl('https://www.google.pl'); $cut->useSSLCertificate($this->getCACertBundlePath()); // when $response = $cut->get('/'); // then $this->assertSelectRegExp('title', '/Google/', 1, $response); } public function testShouldGetGooglePageAndThrowExceptionOnMissingCertificate() { // given $cut = new PCurl('https://www.google.com'); // then $this->setExpectedException('PurpleCode\PCurl\PCurlException'); // when $response = $cut->get('/'); } }