From d6bc335ddca902985ba39649ac7222c609b2b6b3 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 10 Sep 2024 11:16:00 +1200 Subject: [PATCH] DEP Use PHPUnit 11 --- composer.json | 2 +- tests/Transformer/YamlTransformerTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 90a2967..f2f8022 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "psr/simple-cache": "^3.0.0" }, "require-dev": { - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^11.3", "mikey179/vfsstream": "^1.6", "squizlabs/php_codesniffer": "^3.7", "silverstripe/standards": "^1", diff --git a/tests/Transformer/YamlTransformerTest.php b/tests/Transformer/YamlTransformerTest.php index 89987cc..cfc66cb 100644 --- a/tests/Transformer/YamlTransformerTest.php +++ b/tests/Transformer/YamlTransformerTest.php @@ -9,6 +9,7 @@ use org\bovigo\vfs\vfsStream; use Symfony\Component\Finder\Finder; use MJS\TopSort\CircularDependencyException; +use PHPUnit\Framework\Attributes\DoesNotPerformAssertions; class YamlTransformerTest extends TestCase { @@ -74,8 +75,8 @@ protected function getConfigDirectory() /** * Test that we can have an empty file without throwing any errors. - * @doesNotPerformAssertions */ + #[DoesNotPerformAssertions] public function testEmptyFileIgnored() { file_put_contents($this->getFilePath('empty.yml') ?? '', '');