Skip to content

Commit 51a8a7b

Browse files
Merge branch '2.6' into 3.6
2 parents 5e679f7 + f1e2a35 commit 51a8a7b

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
14+
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1515

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

30-
- name: Install PHP 5/7 Dependencies
30+
- name: Install Dependencies
3131
uses: nick-invision/retry@v1
3232
with:
3333
timeout_minutes: 5
3434
max_attempts: 5
3535
command: composer update --no-interaction --no-progress
36-
if: "matrix.php < 8"
37-
38-
- name: Install PHP 8 Dependencies
39-
uses: nick-invision/retry@v1
40-
with:
41-
timeout_minutes: 5
42-
max_attempts: 5
43-
command: composer update --no-interaction --no-progress --ignore-platform-req=php
44-
if: "matrix.php >= 8"
4536

4637
- name: Execute PHPUnit
4738
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.phpunit.result.cache
12
composer.lock
23
phpunit.xml
34
vendor

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
"authors": [
77
{
88
"name": "Graham Campbell",
9-
"email": "[email protected]",
10-
"homepage": "https://gjcampbell.co.uk/"
9+
"email": "[email protected]"
1110
},
1211
{
1312
"name": "Vance Lucas",
14-
"email": "[email protected]",
15-
"homepage": "https://vancelucas.com/"
13+
"email": "[email protected]"
1614
}
1715
],
1816
"require": {
@@ -23,7 +21,7 @@
2321
"require-dev": {
2422
"ext-filter": "*",
2523
"ext-pcre": "*",
26-
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20"
24+
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.21"
2725
},
2826
"autoload": {
2927
"psr-4": {

phpunit.xml.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
beStrictAboutOutputDuringTests="true"
66
bootstrap="vendor/autoload.php"
77
colors="true"
8+
convertDeprecationsToExceptions="true"
89
convertErrorsToExceptions="true"
910
convertNoticesToExceptions="true"
1011
convertWarningsToExceptions="true"
1112
failOnRisky="true"
12-
failOnWarning="true"
13+
failOnWarning="false"
1314
processIsolation="false"
1415
stopOnError="false"
1516
stopOnFailure="false"

tests/Dotenv/DotenvTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class DotenvTest extends TestCase
1010
*/
1111
private $fixturesFolder;
1212

13-
public function setUp()
13+
/**
14+
* @before
15+
*/
16+
public function setUpTest()
1417
{
1518
$this->fixturesFolder = dirname(__DIR__).'/fixtures/env';
1619
}

tests/Dotenv/LoaderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ class LoaderTest extends TestCase
1717
*/
1818
protected $keyVal;
1919

20-
public function setUp()
20+
/**
21+
* @before
22+
*/
23+
public function setUpTest()
2124
{
2225
$this->folder = dirname(__DIR__).'/fixtures/env';
2326
$this->keyVal(true);

tests/Dotenv/ValidatorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class ValidatorTest extends TestCase
1010
*/
1111
private $fixturesFolder;
1212

13-
public function setUp()
13+
/**
14+
* @before
15+
*/
16+
public function setUpTest()
1417
{
1518
$this->fixturesFolder = dirname(__DIR__).'/fixtures/env';
1619
}

0 commit comments

Comments
 (0)