diff --git a/tests/Issues/Issue7112/Fixture/fixture.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_nested_closure_return_in_fluent_call.php.inc similarity index 73% rename from tests/Issues/Issue7112/Fixture/fixture.php.inc rename to rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_nested_closure_return_in_fluent_call.php.inc index 7c4d314cd2b..fe48ceedd54 100644 --- a/tests/Issues/Issue7112/Fixture/fixture.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_nested_closure_return_in_fluent_call.php.inc @@ -1,8 +1,8 @@ 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/ArrowFunctionToAnonymousFunctionSuperglobals/Fixture/do_not_allow_superglobals_in_anonymous_function_use.php.inc b/tests/Issues/ArrowFunctionToAnonymousFunctionSuperglobals/Fixture/do_not_allow_superglobals_in_anonymous_function_use.php.inc deleted file mode 100644 index bd28c1f1f8f..00000000000 --- a/tests/Issues/ArrowFunctionToAnonymousFunctionSuperglobals/Fixture/do_not_allow_superglobals_in_anonymous_function_use.php.inc +++ /dev/null @@ -1,27 +0,0 @@ - $_SERVER['destroy']['retrieved'][] = $model->my_id); - } -} -?> ------ -my_id; - }); - } -} -?> diff --git a/tests/Issues/ArrowFunctionToAnonymousFunctionSuperglobals/config/configured_rule.php b/tests/Issues/ArrowFunctionToAnonymousFunctionSuperglobals/config/configured_rule.php deleted file mode 100644 index 328dcdc77e6..00000000000 --- a/tests/Issues/ArrowFunctionToAnonymousFunctionSuperglobals/config/configured_rule.php +++ /dev/null @@ -1,9 +0,0 @@ -withRules([ArrowFunctionToAnonymousFunctionRector::class]); diff --git a/tests/Issues/InlineTags/Fixture/fixture.php.inc b/tests/Issues/InlineTags/Fixture/fixture.php.inc deleted file mode 100644 index 42fbd35b531..00000000000 --- a/tests/Issues/InlineTags/Fixture/fixture.php.inc +++ /dev/null @@ -1,27 +0,0 @@ - ------ - diff --git a/tests/Issues/InlineTags/Fixture/with_description.php.inc b/tests/Issues/InlineTags/Fixture/with_description.php.inc deleted file mode 100644 index 3c01d41c715..00000000000 --- a/tests/Issues/InlineTags/Fixture/with_description.php.inc +++ /dev/null @@ -1,29 +0,0 @@ - ------ - diff --git a/tests/Issues/InlineTags/Fixture/with_punctuation.php.inc b/tests/Issues/InlineTags/Fixture/with_punctuation.php.inc deleted file mode 100644 index 6ac8a5eff6f..00000000000 --- a/tests/Issues/InlineTags/Fixture/with_punctuation.php.inc +++ /dev/null @@ -1,27 +0,0 @@ - ------ - diff --git a/tests/Issues/InlineTags/InlineTagsTest.php b/tests/Issues/InlineTags/InlineTagsTest.php deleted file mode 100644 index c1694f9b3ff..00000000000 --- a/tests/Issues/InlineTags/InlineTagsTest.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/InlineTags/config/configured_rule.php b/tests/Issues/InlineTags/config/configured_rule.php deleted file mode 100644 index ac138f68ec7..00000000000 --- a/tests/Issues/InlineTags/config/configured_rule.php +++ /dev/null @@ -1,9 +0,0 @@ -withRules([CoversAnnotationWithValueToAttributeRector::class]); diff --git a/tests/Issues/Issue7112/RuleCombinationShouldNotAddVoidReturnTypeWhereReturnExistsRectorTest.php b/tests/Issues/Issue7112/RuleCombinationShouldNotAddVoidReturnTypeWhereReturnExistsRectorTest.php deleted file mode 100644 index c358e0aa2b9..00000000000 --- a/tests/Issues/Issue7112/RuleCombinationShouldNotAddVoidReturnTypeWhereReturnExistsRectorTest.php +++ /dev/null @@ -1,31 +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/Issue7112/config/configured_rule.php b/tests/Issues/Issue7112/config/configured_rule.php deleted file mode 100644 index 73219c50265..00000000000 --- a/tests/Issues/Issue7112/config/configured_rule.php +++ /dev/null @@ -1,11 +0,0 @@ -withRules( - [AddVoidReturnTypeWhereNoReturnRector::class] - ); diff --git a/tests/Issues/IssueAnnotation/Fixture/fixture.php.inc b/tests/Issues/IssueAnnotation/Fixture/fixture.php.inc deleted file mode 100644 index 4f33ab76a32..00000000000 --- a/tests/Issues/IssueAnnotation/Fixture/fixture.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - ------ - diff --git a/tests/Issues/IssueAnnotation/IssueAnnotationTest.php b/tests/Issues/IssueAnnotation/IssueAnnotationTest.php deleted file mode 100644 index 99e86464f6d..00000000000 --- a/tests/Issues/IssueAnnotation/IssueAnnotationTest.php +++ /dev/null @@ -1,31 +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/IssueAnnotation/Source/SomeAttributes.php b/tests/Issues/IssueAnnotation/Source/SomeAttributes.php deleted file mode 100644 index 88a2f336f6b..00000000000 --- a/tests/Issues/IssueAnnotation/Source/SomeAttributes.php +++ /dev/null @@ -1,10 +0,0 @@ -withRules([DowngradeNamedArgumentRector::class]); diff --git a/tests/Issues/IssueConditionalType/Fixture/fixture.php.inc b/tests/Issues/IssueConditionalType/Fixture/fixture.php.inc deleted file mode 100644 index e4d817629fa..00000000000 --- a/tests/Issues/IssueConditionalType/Fixture/fixture.php.inc +++ /dev/null @@ -1,35 +0,0 @@ -|scalar - * - * @return (TValue is scalar ? array|scalar : array) - */ - public function resolveValue(): mixed - { - } -} - -?> ------ -|scalar - * - * @return (TValue is scalar ? array|scalar : array) - */ - public function resolveValue() - { - } -} - -?> diff --git a/tests/Issues/IssueConditionalType/IssueConditionalTypeTest.php b/tests/Issues/IssueConditionalType/IssueConditionalTypeTest.php deleted file mode 100644 index dfdae2aad38..00000000000 --- a/tests/Issues/IssueConditionalType/IssueConditionalTypeTest.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/IssueConditionalType/config/configured_rule.php b/tests/Issues/IssueConditionalType/config/configured_rule.php deleted file mode 100644 index d6852edfa72..00000000000 --- a/tests/Issues/IssueConditionalType/config/configured_rule.php +++ /dev/null @@ -1,9 +0,0 @@ -withRules([DowngradeMixedTypeDeclarationRector::class]);