diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..000fd36 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: php +php: + - '7.1' +env: + - Test=test +before_script: composer install \ No newline at end of file diff --git a/composer.json b/composer.json index 7249122..88cb90a 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } }, "require": { - "php": ">=7.0.0", + "php": ">=7.1.0", "php-http/httplug": "^1.1", "php-http/message": "^1.6", "php-http/guzzle6-adapter": "^1.1", diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 0efbdeb..548332d 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -22,8 +22,10 @@ public function __construct($name = null, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); - $dotenv = new \Dotenv\Dotenv(__DIR__ . '/../'); - $dotenv->load(); + if(file_exists(__DIR__ . '/../.env')) { + $dotenv = new \Dotenv\Dotenv(__DIR__ . '/../'); + $dotenv->load(); + } }