From f38b10092534d764800b6c60b21a11f56f1183d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sat, 4 Feb 2023 20:03:10 +0100 Subject: [PATCH] Update test suite and report failed assertions --- .github/workflows/ci.yml | 1 + composer.json | 10 +++++++--- phpunit.xml.dist | 9 +++++++-- phpunit.xml.legacy | 8 ++++++++ 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7721f8..52ad3f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,7 @@ jobs: with: php-version: ${{ matrix.php }} coverage: xdebug + ini-file: development - run: composer install - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml if: ${{ matrix.php >= 7.3 }} diff --git a/composer.json b/composer.json index a5f576a..394d7e2 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,16 @@ "react/http": "^1.6" }, "require-dev": { - "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.35" }, "autoload": { - "psr-4": { "Clue\\React\\EventSource\\": "src/" } + "psr-4": { + "Clue\\React\\EventSource\\": "src/" + } }, "autoload-dev": { - "psr-4": { "Clue\\Tests\\React\\EventSource\\": "tests/" } + "psr-4": { + "Clue\\Tests\\React\\EventSource\\": "tests/" + } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ae90046..17a7ce3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - + + + + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index 88c631e..154c7e0 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -15,4 +15,12 @@ ./src/ + + + + + + + +