diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 240e00c..a4d99ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,7 +49,7 @@ jobs: run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress - name: Execute tests - run: vendor/bin/phpunit --verbose --coverage-clover coverage.xml + run: vendor/bin/phpunit --coverage-clover coverage.xml env: DB_PORT: ${{ job.services.mysql.ports[3306] }} DB_USERNAME: root diff --git a/.gitignore b/.gitignore index 8f7045c..88e7169 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /composer.lock /vendor/ +/.phpunit.cache/ /.phpunit.result.cache diff --git a/composer.json b/composer.json index eec5aa0..55787fa 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ }, "require-dev": { "orchestra/testbench": "^8.13", - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^10.4" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index eb9c5b9..674e093 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,21 +1,17 @@ - + ./tests - - - ./src - - + + + + ./src + + diff --git a/tests/FlarumMiddlewareTest.php b/tests/FlarumMiddlewareTest.php index 325ecfe..1b771af 100644 --- a/tests/FlarumMiddlewareTest.php +++ b/tests/FlarumMiddlewareTest.php @@ -12,7 +12,7 @@ use Illuminate\Support\Str; use Symfony\Component\HttpKernel\Exception\HttpException; -final class MiddlewareTest extends TestCase +final class FlarumMiddlewareTest extends TestCase { public function testExceptionIsThrownIfSessionCouldNotBeFound() {