diff --git a/tests/PHPUnit/Integration/HttpTest.php b/tests/PHPUnit/Integration/HttpTest.php index e0eb78043dc68f4b4856358d385c31e4dc814987..823b6037be95a146502fc4fc6e5941eab55488bd 100644 --- a/tests/PHPUnit/Integration/HttpTest.php +++ b/tests/PHPUnit/Integration/HttpTest.php @@ -230,8 +230,12 @@ class HttpTest extends \PHPUnit_Framework_TestCase } /** + * erroe message can be: + * curl_exec: server certificate verification failed. CAfile: /home/travis/build/piwik/piwik/core/DataFiles/cacert.pem CRLfile: none. Hostname requested was: self-signed.badssl.com + * or + * curl_exec: SSL certificate problem: self signed certificate. Hostname requested was: self-signed.badssl.com * @expectedException \Exception - * @expectedExceptionMessage curl_exec: SSL + * @expectedExceptionMessageRegExp /curl_exec: .*certificate.* / */ public function testCurlHttpsFailsWithInvalidCertificate() {