Skip to content

Commit 41fbabd

Browse files
authored
Merge pull request #5 from BekoDesign/travis
Travis
2 parents fd6bdf3 + 2a4fe48 commit 41fbabd

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: php
2+
php:
3+
- '7.1'
4+
env:
5+
- Test=test
6+
before_script: composer install

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"require": {
23-
"php": ">=7.0.0",
23+
"php": ">=7.1.0",
2424
"php-http/httplug": "^1.1",
2525
"php-http/message": "^1.6",
2626
"php-http/guzzle6-adapter": "^1.1",

tests/BaseTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ public function __construct($name = null, array $data = [], $dataName = '')
2222
{
2323
parent::__construct($name, $data, $dataName);
2424

25-
$dotenv = new \Dotenv\Dotenv(__DIR__ . '/../');
26-
$dotenv->load();
25+
if(file_exists(__DIR__ . '/../.env')) {
26+
$dotenv = new \Dotenv\Dotenv(__DIR__ . '/../');
27+
$dotenv->load();
28+
}
2729
}
2830

2931

0 commit comments

Comments
 (0)