Skip to content

Commit

Permalink
Merge branch '2.6' into 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Oct 2, 2021
2 parents 5e679f7 + f1e2a35 commit 51a8a7b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']

steps:
- name: Checkout Code
Expand All @@ -27,21 +27,12 @@ jobs:
- name: Setup Problem Matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install PHP 5/7 Dependencies
- name: Install Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --no-interaction --no-progress
if: "matrix.php < 8"

- name: Install PHP 8 Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --no-interaction --no-progress --ignore-platform-req=php
if: "matrix.php >= 8"

- name: Execute PHPUnit
run: vendor/bin/phpunit
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.phpunit.result.cache
composer.lock
phpunit.xml
vendor
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
"authors": [
{
"name": "Graham Campbell",
"email": "graham@alt-three.com",
"homepage": "https://gjcampbell.co.uk/"
"email": "hello@gjcampbell.co.uk"
},
{
"name": "Vance Lucas",
"email": "vance@vancelucas.com",
"homepage": "https://vancelucas.com/"
"email": "vance@vancelucas.com"
}
],
"require": {
Expand All @@ -23,7 +21,7 @@
"require-dev": {
"ext-filter": "*",
"ext-pcre": "*",
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20"
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.21"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
beStrictAboutOutputDuringTests="true"
bootstrap="vendor/autoload.php"
colors="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
failOnWarning="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
Expand Down
5 changes: 4 additions & 1 deletion tests/Dotenv/DotenvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ class DotenvTest extends TestCase
*/
private $fixturesFolder;

public function setUp()
/**
* @before
*/
public function setUpTest()
{
$this->fixturesFolder = dirname(__DIR__).'/fixtures/env';
}
Expand Down
5 changes: 4 additions & 1 deletion tests/Dotenv/LoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ class LoaderTest extends TestCase
*/
protected $keyVal;

public function setUp()
/**
* @before
*/
public function setUpTest()
{
$this->folder = dirname(__DIR__).'/fixtures/env';
$this->keyVal(true);
Expand Down
5 changes: 4 additions & 1 deletion tests/Dotenv/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ class ValidatorTest extends TestCase
*/
private $fixturesFolder;

public function setUp()
/**
* @before
*/
public function setUpTest()
{
$this->fixturesFolder = dirname(__DIR__).'/fixtures/env';
}
Expand Down

0 comments on commit 51a8a7b

Please sign in to comment.