Skip to content

Commit

Permalink
Merge branch '3.6' into 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Oct 2, 2021
2 parents 3449336 + a1bf4c9 commit 6854d24
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 22 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.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
php: ['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
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
phpstan.neon
phpstan.tests.neon
Expand Down
10 changes: 4 additions & 6 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 @@ -24,7 +22,7 @@
"ext-filter": "*",
"ext-pcre": "*",
"bamarni/composer-bin-plugin": "^1.4.1",
"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 All @@ -45,7 +43,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"
"dev-master": "4.2-dev"
}
}
}
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 @@ -15,7 +15,10 @@ class DotenvTest extends TestCase
*/
private $folder;

public function setUp()
/**
* @before
*/
public function setUpTest()
{
$this->folder = dirname(__DIR__).'/fixtures/env';
}
Expand Down
5 changes: 4 additions & 1 deletion tests/Dotenv/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class RepositoryTest 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/StoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class StoreTest extends TestCase
*/
private $folder;

public function setUp()
/**
* @before
*/
public function setUpTest()
{
$this->folder = dirname(__DIR__).'/fixtures/env';
}
Expand Down
5 changes: 4 additions & 1 deletion tests/Dotenv/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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 6854d24

Please sign in to comment.