Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-12-01 01:49:01 +0300
committermattab <matthieu.aubry@gmail.com>2016-12-01 01:52:04 +0300
commit592f9bd80e27e48f8159a90d6df055f8f0791f93 (patch)
treed4920a7a0401f9b066af82a8c38e3fa507e30c02 /tests
parenta30d35bf092340f511ac146a47c3a9f30891f82c (diff)
Make the CURL error message detected across CURL versions / OS
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Integration/HttpTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/HttpTest.php b/tests/PHPUnit/Integration/HttpTest.php
index e0eb78043d..823b6037be 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()
{