From cc48f26cefd0bac40c68cc239cc208bf5275ba1c Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 8 Oct 2026 23:42:48 +0200 Subject: [PATCH] drop 3 low-value Issues regression tests --- .../EmptyLongArraySyntaxTest.php | 28 ----------- .../Fixture/empty_long_array.php.inc | 33 ------------- .../Source/ParentWithEmptyLongArray.php | 12 ----- .../config/configured_rule.php | 10 ---- .../GetValueMagicDir/Fixture/fixture.php.inc | 33 ------------- .../GetValueMagicDir/GetValueMagicDirTest.php | 28 ----------- .../Source/GetValueMagicDirRector.php | 49 ------------------- .../config/configured_rule.php | 9 ---- .../Fixture/rename_string.php.inc | 35 ------------- .../Issues/RenameString/RenameStringTest.php | 28 ----------- .../RenameString/config/configured_rule.php | 15 ------ 11 files changed, 280 deletions(-) delete mode 100644 tests/Issues/EmptyLongArraySyntax/EmptyLongArraySyntaxTest.php delete mode 100644 tests/Issues/EmptyLongArraySyntax/Fixture/empty_long_array.php.inc delete mode 100644 tests/Issues/EmptyLongArraySyntax/Source/ParentWithEmptyLongArray.php delete mode 100644 tests/Issues/EmptyLongArraySyntax/config/configured_rule.php delete mode 100644 tests/Issues/GetValueMagicDir/Fixture/fixture.php.inc delete mode 100644 tests/Issues/GetValueMagicDir/GetValueMagicDirTest.php delete mode 100644 tests/Issues/GetValueMagicDir/Source/GetValueMagicDirRector.php delete mode 100644 tests/Issues/GetValueMagicDir/config/configured_rule.php delete mode 100644 tests/Issues/RenameString/Fixture/rename_string.php.inc delete mode 100644 tests/Issues/RenameString/RenameStringTest.php delete mode 100644 tests/Issues/RenameString/config/configured_rule.php diff --git a/tests/Issues/EmptyLongArraySyntax/EmptyLongArraySyntaxTest.php b/tests/Issues/EmptyLongArraySyntax/EmptyLongArraySyntaxTest.php deleted file mode 100644 index 6dd6e36f39e..00000000000 --- a/tests/Issues/EmptyLongArraySyntax/EmptyLongArraySyntaxTest.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/configured_rule.php'; - } -} diff --git a/tests/Issues/EmptyLongArraySyntax/Fixture/empty_long_array.php.inc b/tests/Issues/EmptyLongArraySyntax/Fixture/empty_long_array.php.inc deleted file mode 100644 index ecf782bedac..00000000000 --- a/tests/Issues/EmptyLongArraySyntax/Fixture/empty_long_array.php.inc +++ /dev/null @@ -1,33 +0,0 @@ - ------ - diff --git a/tests/Issues/EmptyLongArraySyntax/Source/ParentWithEmptyLongArray.php b/tests/Issues/EmptyLongArraySyntax/Source/ParentWithEmptyLongArray.php deleted file mode 100644 index 32db379c6a5..00000000000 --- a/tests/Issues/EmptyLongArraySyntax/Source/ParentWithEmptyLongArray.php +++ /dev/null @@ -1,12 +0,0 @@ -withRules([SensitiveConstantNameRector::class, AddParamBasedOnParentClassMethodRector::class]); diff --git a/tests/Issues/GetValueMagicDir/Fixture/fixture.php.inc b/tests/Issues/GetValueMagicDir/Fixture/fixture.php.inc deleted file mode 100644 index 1e189224851..00000000000 --- a/tests/Issues/GetValueMagicDir/Fixture/fixture.php.inc +++ /dev/null @@ -1,33 +0,0 @@ - ['foo' => __DIR__ . '/bar']]); - } -} - -?> ------ - ['foo' => 'tests/Issues/GetValueMagicDir/Fixture/bar']]; - } -} - -?> diff --git a/tests/Issues/GetValueMagicDir/GetValueMagicDirTest.php b/tests/Issues/GetValueMagicDir/GetValueMagicDirTest.php deleted file mode 100644 index adcb498718b..00000000000 --- a/tests/Issues/GetValueMagicDir/GetValueMagicDirTest.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/configured_rule.php'; - } -} diff --git a/tests/Issues/GetValueMagicDir/Source/GetValueMagicDirRector.php b/tests/Issues/GetValueMagicDir/Source/GetValueMagicDirRector.php deleted file mode 100644 index 2827fe448ed..00000000000 --- a/tests/Issues/GetValueMagicDir/Source/GetValueMagicDirRector.php +++ /dev/null @@ -1,49 +0,0 @@ -valueResolver->getValue($node->args[0]->value); - - if ($node instanceof FuncCall) { - return new String_($this->filePathHelper->relativePath($value)); - } - - $value['bar']['foo'] = $this->filePathHelper->relativePath($value['bar']['foo']); - return $this->nodeFactory->createArray($value); - } -} diff --git a/tests/Issues/GetValueMagicDir/config/configured_rule.php b/tests/Issues/GetValueMagicDir/config/configured_rule.php deleted file mode 100644 index 70c2ddb94b8..00000000000 --- a/tests/Issues/GetValueMagicDir/config/configured_rule.php +++ /dev/null @@ -1,9 +0,0 @@ -withRules([GetValueMagicDirRector::class]); diff --git a/tests/Issues/RenameString/Fixture/rename_string.php.inc b/tests/Issues/RenameString/Fixture/rename_string.php.inc deleted file mode 100644 index ecaa78e2cc8..00000000000 --- a/tests/Issues/RenameString/Fixture/rename_string.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - ------ - diff --git a/tests/Issues/RenameString/RenameStringTest.php b/tests/Issues/RenameString/RenameStringTest.php deleted file mode 100644 index e432141129d..00000000000 --- a/tests/Issues/RenameString/RenameStringTest.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/configured_rule.php'; - } -} diff --git a/tests/Issues/RenameString/config/configured_rule.php b/tests/Issues/RenameString/config/configured_rule.php deleted file mode 100644 index a5835ec442a..00000000000 --- a/tests/Issues/RenameString/config/configured_rule.php +++ /dev/null @@ -1,15 +0,0 @@ -rule(StringClassNameToClassConstantRector::class); - - $rectorConfig->ruleWithConfiguration(RenameStringRector::class, [ - 'Rector\Tests\Issues\RenameString\Fixture\RenameString' => 'new test', - ]); -};