Skip to content

Commit 6854d24

Browse files
Merge branch '3.6' into 4.2
2 parents 3449336 + a1bf4c9 commit 6854d24

File tree

8 files changed

+25
-22
lines changed

8 files changed

+25
-22
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.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
14+
php: ['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
phpstan.neon
34
phpstan.tests.neon

composer.json

Lines changed: 4 additions & 6 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": {
@@ -24,7 +22,7 @@
2422
"ext-filter": "*",
2523
"ext-pcre": "*",
2624
"bamarni/composer-bin-plugin": "^1.4.1",
27-
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20"
25+
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.21"
2826
},
2927
"autoload": {
3028
"psr-4": {
@@ -45,7 +43,7 @@
4543
},
4644
"extra": {
4745
"branch-alias": {
48-
"dev-master": "4.1-dev"
46+
"dev-master": "4.2-dev"
4947
}
5048
}
5149
}

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
@@ -15,7 +15,10 @@ class DotenvTest extends TestCase
1515
*/
1616
private $folder;
1717

18-
public function setUp()
18+
/**
19+
* @before
20+
*/
21+
public function setUpTest()
1922
{
2023
$this->folder = dirname(__DIR__).'/fixtures/env';
2124
}

tests/Dotenv/RepositoryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ class RepositoryTest extends TestCase
1919
*/
2020
protected $keyVal;
2121

22-
public function setUp()
22+
/**
23+
* @before
24+
*/
25+
public function setUpTest()
2326
{
2427
$this->folder = dirname(__DIR__).'/fixtures/env';
2528
$this->keyVal(true);

tests/Dotenv/StoreTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ class StoreTest extends TestCase
1414
*/
1515
private $folder;
1616

17-
public function setUp()
17+
/**
18+
* @before
19+
*/
20+
public function setUpTest()
1821
{
1922
$this->folder = dirname(__DIR__).'/fixtures/env';
2023
}

tests/Dotenv/ValidatorTest.php

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

15-
public function setUp()
15+
/**
16+
* @before
17+
*/
18+
public function setUpTest()
1619
{
1720
$this->fixturesFolder = dirname(__DIR__).'/fixtures/env';
1821
}

0 commit comments

Comments
 (0)