From 2917cfbb67aaa2e1f494d5182caf5253d3486d6e Mon Sep 17 00:00:00 2001 From: Simon Frings Date: Mon, 6 Sep 2021 11:25:29 +0200 Subject: [PATCH] Update PHPUnit configuration schema for PHPUnit 9.3 --- .github/workflows/ci.yml | 3 +++ phpunit.xml.dist | 29 ++++++++++++++--------------- phpunit.xml.legacy | 22 ++++++++++++++++++++++ 3 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 phpunit.xml.legacy diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bb75f0..57422de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: coverage: xdebug - run: composer install - run: vendor/bin/phpunit --coverage-text + if: ${{ matrix.php >= 7.3 }} + - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy + if: ${{ matrix.php < 7.3 }} PHPUnit-hhvm: name: PHPUnit (HHVM) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 810b8b2..08c041f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,23 +1,22 @@ - + - + bootstrap="vendor/autoload.php" + cacheResult="false" + colors="true" + stopOnError="false"> - ./tests/unit/ + ./tests/ - - - + + ./src/ - - - \ No newline at end of file + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy new file mode 100644 index 0000000..dd7205b --- /dev/null +++ b/phpunit.xml.legacy @@ -0,0 +1,22 @@ + + + + + + + ./tests/ + + + + + ./src/ + + +