diff --git a/tests/PHPUnit/Integration/HttpTest.php b/tests/PHPUnit/Integration/HttpTest.php index 3e7f38577cdd8147451dd7475469801161662c21..bd969991003e41fd64f8e6d0de76a2e92c7a3a9e 100644 --- a/tests/PHPUnit/Integration/HttpTest.php +++ b/tests/PHPUnit/Integration/HttpTest.php @@ -115,4 +115,15 @@ class HttpTest extends \PHPUnit_Framework_TestCase $this->assertTrue(is_numeric($result['headers']['Content-Length']), "Content-Length header not numeric!"); $this->assertTrue(in_array($result['headers']['Content-Type'], array('application/zip', 'application/x-zip-compressed'))); } + + public function testHttps() + { + $result = Http::sendHttpRequestBy( + 'curl', + 'https://builds.piwik.org/LATEST', + 10 + ); + + $this->assertStringMatchesFormat('%d.%d.%d', $result); + } }