diff --git a/.travis.yml b/.travis.yml
index c49bc1b..5624edb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,19 @@ php:
- "5.5"
- "5.6"
- "7.0"
+ - "7.1"
+ - "7.2"
+ - "7.3"
+ - "7.4"
- nightly
+
+matrix:
+ allow_failures:
+ - php: 5.4
+ - php: 5.5
+ - php: 5.6
+ - php: 7.0
+ - php: nightly
+
script:
- - phpunit -c phpunit.xml Tests/
\ No newline at end of file
+ - vendor/bin/phpunit -c phpunit.xml Tests/
diff --git a/Tests/Current_Session_Test.php b/Tests/Current_Session_Test.php
index 2cd3cfe..4e39990 100644
--- a/Tests/Current_Session_Test.php
+++ b/Tests/Current_Session_Test.php
@@ -12,7 +12,7 @@ class Current_Session_Test extends TestCase
private $sessionCreatedTime;
private $sessionLastRenewedTime;
- protected function setUp()
+ protected function setUp(): void
{
$this->sessionId = \ApplicationInsights\Channel\Contracts\Utils::returnGuid();
$this->sessionCreatedTime = time();
@@ -20,7 +20,7 @@ protected function setUp()
Utils::setSessionCookie($this->sessionId, $this->sessionCreatedTime, $this->sessionLastRenewedTime);
}
- protected function tearDown()
+ protected function tearDown(): void
{
Utils::clearSessionCookie();
}
diff --git a/Tests/Current_User_Test.php b/Tests/Current_User_Test.php
index d7c7468..d71d47c 100644
--- a/Tests/Current_User_Test.php
+++ b/Tests/Current_User_Test.php
@@ -10,13 +10,13 @@ class Current_User_Test extends TestCase
{
private $userId;
- protected function setUp()
+ protected function setUp(): void
{
$this->userId = \ApplicationInsights\Channel\Contracts\Utils::returnGuid();
Utils::setUserCookie($this->userId);
}
- protected function tearDown()
+ protected function tearDown(): void
{
Utils::clearUserCookie();
}
diff --git a/Tests/Telemetry_Client_Test.php b/Tests/Telemetry_Client_Test.php
index 1cef3ba..d5cdf7f 100644
--- a/Tests/Telemetry_Client_Test.php
+++ b/Tests/Telemetry_Client_Test.php
@@ -10,7 +10,7 @@ class Telemetry_Client_Test extends TestCase
{
private $_telemetryClient;
- protected function setUp()
+ protected function setUp(): void
{
$this->_telemetryClient = new \ApplicationInsights\Telemetry_Client();
diff --git a/composer.json b/composer.json
index 23e26be..fb2921f 100644
--- a/composer.json
+++ b/composer.json
@@ -7,10 +7,10 @@
"license": "MIT",
"require": {
"php": ">=5.4.0",
- "guzzlehttp/guzzle": ">=5.0 <=6.3.3"
+ "guzzlehttp/guzzle": "~5|~6"
},
"require-dev": {
- "phpunit/phpunit": "~4.8.36",
+ "phpunit/phpunit": "~5|~6|~7|~8|~9",
"evert/phpdoc-md" : "~0.0.7"
},
"autoload": {
diff --git a/phpunit.xml b/phpunit.xml
index 04d9caa..c49646e 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,24 +1,24 @@
-
- bootstrap="/Tests/Bootstrap.php"
- cacheTokens="false"
- colors="false"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- forceCoversAnnotation="false"
- mapTestClassNameToCoveredClassName="false"
- printerClass="PHPUnit_TextUI_ResultPrinter"
-
- processIsolation="false"
- stopOnError="false"
- stopOnFailure="false"
- stopOnIncomplete="false"
- stopOnSkipped="false"
- testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
-
- timeoutForSmallTests="1"
- timeoutForMediumTests="10"
- timeoutForLargeTests="60"
- strict="false"
- verbose="true"
-
\ No newline at end of file
+
+
+