diff --git a/ci/check_keep_fixtures.php b/ci/check_keep_fixtures.php index 98301a1f6f6..8c9962b9224 100644 --- a/ci/check_keep_fixtures.php +++ b/ci/check_keep_fixtures.php @@ -15,6 +15,7 @@ $finder->files(); $finder->name('*.php.inc'); $finder->in(__DIR__ . '/../tests'); $finder->in(__DIR__ . '/../packages/*/tests'); +$finder->in(__DIR__ . '/../rules/*/tests'); $finderSanitizer = new FinderSanitizer(); $smartFileInfos = $finderSanitizer->sanitize($finder); diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/custom_exception_already_annotated_in_function.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/custom_exception_already_annotated_in_function.php.inc index cec3744d12d..f3b4b33ddd7 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/custom_exception_already_annotated_in_function.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/custom_exception_already_annotated_in_function.php.inc @@ -9,19 +9,3 @@ function throwCustomExceptionAlreadyAnnotatedInFunction() { throw new \Rector\CodingStyle\Tests\Rector\Throw_\AnnotateThrowablesRector\Source\TheException(); } - -?> ------ - diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_function.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_function.php.inc index 6f5d9ef6619..57a5e309c8b 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_function.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_function.php.inc @@ -9,19 +9,3 @@ function throwRootExceptionAlreadyAnnotatedInFunction() { throw new \RuntimeException(); } - -?> ------ - diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_method.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_method.php.inc index 3927ffc433c..173661e765f 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_method.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_exception_already_annotated_in_method.php.inc @@ -12,22 +12,3 @@ class RootExceptionAlreadyAnnotatedInMethod throw new \RuntimeException(); } } - -?> ------ - diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_function.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_function.php.inc index eca455b49aa..9b26ec3cd4c 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_function.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_function.php.inc @@ -11,21 +11,3 @@ function throwRootImportedExceptionAlreadyAnnotatedInFunction() { throw new RuntimeException(); } - -?> ------ - diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_method.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_method.php.inc index 386d0d5ac8a..703eecfb3c1 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_method.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/root_imported_exception_already_annotated_in_method.php.inc @@ -14,24 +14,3 @@ class RootImportedExceptionAlreadyAnnotatedInMethod throw new RuntimeException(); } } - -?> ------ - diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_no_return_type_hinting.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_no_return_type_hinting.php.inc index 0a5fc959617..8680148eba5 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_no_return_type_hinting.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_no_return_type_hinting.php.inc @@ -18,28 +18,3 @@ function throwWithFactoryMethodNoReturnTypeHinting() { throw ExceptionsFactoryNotAnnotated::createException(1); } - -?> ------ - diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_nothing_annotated.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_nothing_annotated.php.inc index a0118b7a05f..af06e6da978 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_nothing_annotated.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/FixtureTodo/factory_method_nothing_annotated.php.inc @@ -28,38 +28,3 @@ function throwWithFactoryMethodNotAnnotated() $factory = new ExceptionsFactoryMethodNothingAnnotated(); throw $factory->cercoQuestoMetodoQui(1); } - -?> ------ -cercoQuestoMetodoQui(1); -} - -?>