From 5755fb8a491eb28abc5a4267fe13e7fcef5e7fdd Mon Sep 17 00:00:00 2001 From: Kevin Wenger Date: Sat, 21 Oct 2023 17:04:37 +0200 Subject: [PATCH] update phpunit/phpunit (9.6.13 => 10.4.1) --- .gitignore | 5 ++++- CHANGELOG.md | 3 +++ composer.json | 2 +- phpunit.xml | 16 ++++++---------- .../BlankLineAfterStartOfClassFixerTest.php | 2 +- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index a1a9dd5..5b55e45 100644 --- a/.gitignore +++ b/.gitignore @@ -6,10 +6,13 @@ /test.php /phpspec.yml .php-cs-fixer.cache -.phpunit.result.cache # Ignore file generated by MacOS *.DS_Store # Ignore files generated by PhpStorm /.idea/ + +# Ignore PHPUnit cache. +.phpunit.result.cache +.phpunit.cache/ diff --git a/CHANGELOG.md b/CHANGELOG.md index f50ff9e..ed334cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - remove NewlineAfterLastCommaInArrayFixer now that a similar rule has been included in PHP CS Fixer +### Security +- update phpunit/phpunit (9.6.13 => 10.4.1) + ## [2.0.1] - 2021-05-12 ### Fixed - fix removal of inheritdoc diff --git a/composer.json b/composer.json index 6f3b985..5f29d6d 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.3", "php-parallel-lint/php-parallel-lint": "^1.3", "phpro/grumphp": "^1.0 || ^2.0", - "phpunit/phpunit": "^9.0." + "phpunit/phpunit": "^10" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index a16da65..f612b56 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,18 +1,14 @@ - - - - src - - - - - - + ./tests/ + + + src + + diff --git a/tests/Unit/Fixer/BlankLineAfterStartOfClassFixerTest.php b/tests/Unit/Fixer/BlankLineAfterStartOfClassFixerTest.php index 71aa75d..6d11456 100644 --- a/tests/Unit/Fixer/BlankLineAfterStartOfClassFixerTest.php +++ b/tests/Unit/Fixer/BlankLineAfterStartOfClassFixerTest.php @@ -13,7 +13,7 @@ * * @covers \drupol\PhpCsFixerConfigsDrupal\Fixer\BlankLineAfterStartOfClass */ -final class BlankLineAfterStartOfClassTest extends FixerTestCase +final class BlankLineAfterStartOfClassFixerTest extends FixerTestCase { protected function setUp(): void {