diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 1b86c60e53..8fff9a1058 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -99,7 +99,7 @@ jobs: extensions: ${{ env.extensions }} ini-values: ${{ env.ini }} coverage: pcov - tools: phpunit:9.5.26, psalm:5.15.0 + tools: phpunit:10.5.2, psalm:5.15.0 - name: Setup problem matchers run: | diff --git a/.gitignore b/.gitignore index 8a6f8f143b..0174306a55 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,7 @@ /.idea # tests -.phpunit.result.cache +.phpunit.cache /tests/coverage # ignore all the vendor cruft diff --git a/composer.json b/composer.json index 7a9af45f37..a15c8cacb0 100644 --- a/composer.json +++ b/composer.json @@ -106,7 +106,7 @@ "@test" ], "fix": "php-cs-fixer fix", - "test": "phpunit --stderr", + "test": "phpunit --stderr --display-warnings", "test:coverage": "XDEBUG_MODE=coverage phpunit --stderr --coverage-html=tests/coverage", "zip": "composer archive --format=zip --file=dist" } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 08d616737a..8055d6cf8e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,17 +1,13 @@ - - - + ./config ./src @@ -23,7 +19,7 @@ ./config/aliases.php ./config/setup.php - + @@ -34,4 +30,6 @@ + + diff --git a/tests/Session/FileSessionStoreTest.php b/tests/Session/FileSessionStoreTest.php index abf730436b..34d41a1fdd 100644 --- a/tests/Session/FileSessionStoreTest.php +++ b/tests/Session/FileSessionStoreTest.php @@ -57,7 +57,7 @@ public function tearDown(): void } Dir::remove($this->root); - $this->assertDirectoryNotExists($this->root); + $this->assertDirectoryDoesNotExist($this->root); } /** diff --git a/tests/Uuid/BlockUuidTest.php b/tests/Uuid/BlockUuidTest.tmp similarity index 100% rename from tests/Uuid/BlockUuidTest.php rename to tests/Uuid/BlockUuidTest.tmp