From 6a62865cc3438c38ff922962283da7582332ac2f Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:03:26 +0100 Subject: [PATCH] [CodeQuality] Remove deprecated ReplaceTestFunctionPrefixWithAttributeRector --- ...eTestFunctionPrefixWithAttributeRector.php | 66 ------------------- 1 file changed, 66 deletions(-) delete mode 100644 rules/CodeQuality/Rector/ClassMethod/ReplaceTestFunctionPrefixWithAttributeRector.php diff --git a/rules/CodeQuality/Rector/ClassMethod/ReplaceTestFunctionPrefixWithAttributeRector.php b/rules/CodeQuality/Rector/ClassMethod/ReplaceTestFunctionPrefixWithAttributeRector.php deleted file mode 100644 index 485c4935..00000000 --- a/rules/CodeQuality/Rector/ClassMethod/ReplaceTestFunctionPrefixWithAttributeRector.php +++ /dev/null @@ -1,66 +0,0 @@ -assertSame(2, 1+1); - } -} -CODE_SAMPLE - , - <<<'CODE_SAMPLE' -class SomeTest extends \PHPUnit\Framework\TestCase -{ - #[Test] - public function onePlusOneShouldBeTwo() - { - $this->assertSame(2, 1+1); - } -} -CODE_SAMPLE - ), - ]); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [ClassMethod::class]; - } - - /** - * @param ClassMethod $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" is deprecated and should not be used anymore. Remove it from your config files.', - self::class, - )); - } -}