From 360fb319463b2b81ce62855fe6d36554f9fddbe1 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 10 Aug 2026 19:14:59 +0200 Subject: [PATCH 1/2] [e2e] Remove low-value e2e tests, fold --only quote variants into single job Drop 3 e2e tests that only re-assert rule behaviour already covered by unit tests: * applied-rule-removed-node - fixture is byte-identical to applied-rule-removed-node-with-cache and applied-rule-removed-node-no-diffs, which both already run it * invalid-paths - covered by path validation, no engine specific behaviour * print-new-node - AddParamBasedOnParentClassMethodRector has 22 fixtures and 8 cross-file parents in its rules-test; phpstan-container-bootstrap covers the same rule end-to-end Fold the 4 "--only" quote variants into the only-option test. They shared the same config and the same expected output, and differed only in the shell quoting of a single option, yet each ran as its own CI job with 2 full composer installs. The e2e runner now accepts "--cli-options ", so one job runs all 5 quoting variants. E2E CI jobs: 26 -> 19. --- .github/workflows/e2e.yaml | 17 ++++---- e2e/applied-rule-removed-node/.gitignore | 1 - e2e/applied-rule-removed-node/composer.json | 7 ---- .../expected-output.diff | 40 ------------------- e2e/applied-rule-removed-node/rector.php | 16 -------- .../src/AlwaysTrue.php | 12 ------ .../src/DeadConstructor.php | 8 ---- e2e/e2eTestRunner.php | 5 ++- e2e/invalid-paths/.gitignore | 1 - e2e/invalid-paths/composer.json | 5 --- e2e/invalid-paths/expected-output.diff | 3 -- e2e/invalid-paths/rector.php | 14 ------- .../src/NamespacedSomeClassFound.php | 10 ----- .../composer.json | 7 ---- .../expected-output.diff | 22 ---------- .../rector.php | 18 --------- .../composer.json | 7 ---- .../expected-output.diff | 22 ---------- .../rector.php | 18 --------- .../composer.json | 7 ---- .../expected-output.diff | 22 ---------- .../rector.php | 18 --------- e2e/only-option-quote-single/composer.json | 7 ---- .../expected-output.diff | 22 ---------- e2e/only-option-quote-single/rector.php | 18 --------- .../cli-options-quote-double-equalnone.txt} | 0 .../cli-options-quote-single-bsdouble.txt} | 0 .../cli-options-quote-single-equalnone.txt} | 0 .../cli-options-quote-single.txt} | 0 e2e/print-new-node/.gitignore | 1 - e2e/print-new-node/composer.json | 5 --- e2e/print-new-node/expected-output.diff | 22 ---------- e2e/print-new-node/rector.php | 13 ------ e2e/print-new-node/src/ExtendingTestClass.php | 7 ---- e2e/print-new-node/src/TestClass.php | 10 ----- 35 files changed, 14 insertions(+), 371 deletions(-) delete mode 100644 e2e/applied-rule-removed-node/.gitignore delete mode 100644 e2e/applied-rule-removed-node/composer.json delete mode 100644 e2e/applied-rule-removed-node/expected-output.diff delete mode 100644 e2e/applied-rule-removed-node/rector.php delete mode 100644 e2e/applied-rule-removed-node/src/AlwaysTrue.php delete mode 100644 e2e/applied-rule-removed-node/src/DeadConstructor.php delete mode 100644 e2e/invalid-paths/.gitignore delete mode 100644 e2e/invalid-paths/composer.json delete mode 100644 e2e/invalid-paths/expected-output.diff delete mode 100644 e2e/invalid-paths/rector.php delete mode 100644 e2e/invalid-paths/src/NamespacedSomeClassFound.php delete mode 100644 e2e/only-option-quote-double-equalnone/composer.json delete mode 100644 e2e/only-option-quote-double-equalnone/expected-output.diff delete mode 100644 e2e/only-option-quote-double-equalnone/rector.php delete mode 100644 e2e/only-option-quote-single-bsdouble/composer.json delete mode 100644 e2e/only-option-quote-single-bsdouble/expected-output.diff delete mode 100644 e2e/only-option-quote-single-bsdouble/rector.php delete mode 100644 e2e/only-option-quote-single-equalnone/composer.json delete mode 100644 e2e/only-option-quote-single-equalnone/expected-output.diff delete mode 100644 e2e/only-option-quote-single-equalnone/rector.php delete mode 100644 e2e/only-option-quote-single/composer.json delete mode 100644 e2e/only-option-quote-single/expected-output.diff delete mode 100644 e2e/only-option-quote-single/rector.php rename e2e/{only-option-quote-double-equalnone/cli-options.txt => only-option/cli-options-quote-double-equalnone.txt} (100%) rename e2e/{only-option-quote-single-bsdouble/cli-options.txt => only-option/cli-options-quote-single-bsdouble.txt} (100%) rename e2e/{only-option-quote-single-equalnone/cli-options.txt => only-option/cli-options-quote-single-equalnone.txt} (100%) rename e2e/{only-option-quote-single/cli-options.txt => only-option/cli-options-quote-single.txt} (100%) delete mode 100644 e2e/print-new-node/.gitignore delete mode 100644 e2e/print-new-node/composer.json delete mode 100644 e2e/print-new-node/expected-output.diff delete mode 100644 e2e/print-new-node/rector.php delete mode 100644 e2e/print-new-node/src/ExtendingTestClass.php delete mode 100644 e2e/print-new-node/src/TestClass.php diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 0307993e0b5..c9a19cf237f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -27,23 +27,16 @@ jobs: - 'e2e/applied-auto-import' - 'e2e/applied-polyfill-php80' - 'e2e/applied-rule-change-docblock' - - 'e2e/applied-rule-removed-node' - 'e2e/applied-rule-return-array-nodes' - 'e2e/config-dist-fallback' - 'e2e/config-file-priority' - 'e2e/different-path-over-skip-config' - - 'e2e/invalid-paths' - 'e2e/no-parallel-reflection-resolver' - 'e2e/only-option' - - 'e2e/only-option-quote-double-equalnone' - - 'e2e/only-option-quote-single' - - 'e2e/only-option-quote-single-bsdouble' - - 'e2e/only-option-quote-single-equalnone' - 'e2e/parallel-custom-config' - 'e2e/parallel-unused-skips' - 'e2e/parallel-reflection-resolver' - 'e2e/parallel with space' - - 'e2e/print-new-node' - 'e2e/phpstan-container-bootstrap' name: End to end test - ${{ matrix.directory }} @@ -82,3 +75,13 @@ jobs: - run: php ../e2eTestRunner.php working-directory: ${{ matrix.directory }} if: ${{ matrix.directory != 'e2e/parallel-custom-config' && matrix.directory != 'e2e/parallel-unused-skips' }} + + # the "--only" option must handle any shell quoting of the very same rule class + - + working-directory: ${{ matrix.directory }} + if: ${{ matrix.directory == 'e2e/only-option' }} + run: | + php ../e2eTestRunner.php --cli-options cli-options-quote-single.txt + php ../e2eTestRunner.php --cli-options cli-options-quote-single-bsdouble.txt + php ../e2eTestRunner.php --cli-options cli-options-quote-single-equalnone.txt + php ../e2eTestRunner.php --cli-options cli-options-quote-double-equalnone.txt diff --git a/e2e/applied-rule-removed-node/.gitignore b/e2e/applied-rule-removed-node/.gitignore deleted file mode 100644 index 61ead86667c..00000000000 --- a/e2e/applied-rule-removed-node/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/vendor diff --git a/e2e/applied-rule-removed-node/composer.json b/e2e/applied-rule-removed-node/composer.json deleted file mode 100644 index 5468cd74606..00000000000 --- a/e2e/applied-rule-removed-node/composer.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "require": { - "php": "^8.1" - }, - "minimum-stability": "dev", - "prefer-stable": true -} diff --git a/e2e/applied-rule-removed-node/expected-output.diff b/e2e/applied-rule-removed-node/expected-output.diff deleted file mode 100644 index 94f3ee2fa9d..00000000000 --- a/e2e/applied-rule-removed-node/expected-output.diff +++ /dev/null @@ -1,40 +0,0 @@ -2 files with changes -==================== - -1) src/AlwaysTrue.php:4 - - ---------- begin diff ---------- -@@ Line 4 @@ - { - public function run() - { -- if (1 === 1) { -- } -- - return 'no'; - } - } - ----------- end diff ----------- - -Applied rules: - * RemoveAlwaysTrueIfConditionRector - - -2) src/DeadConstructor.php:2 - - ---------- begin diff ---------- -@@ Line 2 @@ - - final class DeadConstructor - { -- public function __construct() -- { -- } - } - ----------- end diff ----------- - -Applied rules: - * RemoveEmptyClassMethodRector - - - [OK] 2 files would have been changed (dry-run) by Rector diff --git a/e2e/applied-rule-removed-node/rector.php b/e2e/applied-rule-removed-node/rector.php deleted file mode 100644 index 4143a148053..00000000000 --- a/e2e/applied-rule-removed-node/rector.php +++ /dev/null @@ -1,16 +0,0 @@ -paths([ - __DIR__ . '/src', - ]); - - $rectorConfig->rule(RemoveEmptyClassMethodRector::class); - $rectorConfig->rule(RemoveAlwaysTrueIfConditionRector::class); -}; diff --git a/e2e/applied-rule-removed-node/src/AlwaysTrue.php b/e2e/applied-rule-removed-node/src/AlwaysTrue.php deleted file mode 100644 index 7b70b9e9ccd..00000000000 --- a/e2e/applied-rule-removed-node/src/AlwaysTrue.php +++ /dev/null @@ -1,12 +0,0 @@ -disableParallel(); - - $rectorConfig->paths([ - __DIR__ . '/src/', // correct path - __DIR__ . '/does-not-exist/' - ]); -}; diff --git a/e2e/invalid-paths/src/NamespacedSomeClassFound.php b/e2e/invalid-paths/src/NamespacedSomeClassFound.php deleted file mode 100644 index 0fc6a46b185..00000000000 --- a/e2e/invalid-paths/src/NamespacedSomeClassFound.php +++ /dev/null @@ -1,10 +0,0 @@ -paths([ - __DIR__ . '/../only-option/src', - ]); - - $rectorConfig->rules([ - RemoveAlwaysElseRector::class, - RemoveUnusedPrivateMethodRector::class, - ]); -}; diff --git a/e2e/only-option-quote-single-bsdouble/composer.json b/e2e/only-option-quote-single-bsdouble/composer.json deleted file mode 100644 index 5468cd74606..00000000000 --- a/e2e/only-option-quote-single-bsdouble/composer.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "require": { - "php": "^8.1" - }, - "minimum-stability": "dev", - "prefer-stable": true -} diff --git a/e2e/only-option-quote-single-bsdouble/expected-output.diff b/e2e/only-option-quote-single-bsdouble/expected-output.diff deleted file mode 100644 index 6c525ad985f..00000000000 --- a/e2e/only-option-quote-single-bsdouble/expected-output.diff +++ /dev/null @@ -1,22 +0,0 @@ -1 file with changes -=================== - -1) ../only-option/src/MultiRules.php:10 - - ---------- begin diff ---------- -@@ Line 10 @@ - echo 'a statement'; - } - } -- -- private function notUsed() -- { -- } - } - ----------- end diff ----------- - -Applied rules: - * RemoveUnusedPrivateMethodRector - - - [OK] 1 file would have been changed (dry-run) by Rector diff --git a/e2e/only-option-quote-single-bsdouble/rector.php b/e2e/only-option-quote-single-bsdouble/rector.php deleted file mode 100644 index ad19381b8b4..00000000000 --- a/e2e/only-option-quote-single-bsdouble/rector.php +++ /dev/null @@ -1,18 +0,0 @@ -paths([ - __DIR__ . '/../only-option/src', - ]); - - $rectorConfig->rules([ - RemoveAlwaysElseRector::class, - RemoveUnusedPrivateMethodRector::class, - ]); -}; diff --git a/e2e/only-option-quote-single-equalnone/composer.json b/e2e/only-option-quote-single-equalnone/composer.json deleted file mode 100644 index 5468cd74606..00000000000 --- a/e2e/only-option-quote-single-equalnone/composer.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "require": { - "php": "^8.1" - }, - "minimum-stability": "dev", - "prefer-stable": true -} diff --git a/e2e/only-option-quote-single-equalnone/expected-output.diff b/e2e/only-option-quote-single-equalnone/expected-output.diff deleted file mode 100644 index 6c525ad985f..00000000000 --- a/e2e/only-option-quote-single-equalnone/expected-output.diff +++ /dev/null @@ -1,22 +0,0 @@ -1 file with changes -=================== - -1) ../only-option/src/MultiRules.php:10 - - ---------- begin diff ---------- -@@ Line 10 @@ - echo 'a statement'; - } - } -- -- private function notUsed() -- { -- } - } - ----------- end diff ----------- - -Applied rules: - * RemoveUnusedPrivateMethodRector - - - [OK] 1 file would have been changed (dry-run) by Rector diff --git a/e2e/only-option-quote-single-equalnone/rector.php b/e2e/only-option-quote-single-equalnone/rector.php deleted file mode 100644 index ad19381b8b4..00000000000 --- a/e2e/only-option-quote-single-equalnone/rector.php +++ /dev/null @@ -1,18 +0,0 @@ -paths([ - __DIR__ . '/../only-option/src', - ]); - - $rectorConfig->rules([ - RemoveAlwaysElseRector::class, - RemoveUnusedPrivateMethodRector::class, - ]); -}; diff --git a/e2e/only-option-quote-single/composer.json b/e2e/only-option-quote-single/composer.json deleted file mode 100644 index 5468cd74606..00000000000 --- a/e2e/only-option-quote-single/composer.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "require": { - "php": "^8.1" - }, - "minimum-stability": "dev", - "prefer-stable": true -} diff --git a/e2e/only-option-quote-single/expected-output.diff b/e2e/only-option-quote-single/expected-output.diff deleted file mode 100644 index 6c525ad985f..00000000000 --- a/e2e/only-option-quote-single/expected-output.diff +++ /dev/null @@ -1,22 +0,0 @@ -1 file with changes -=================== - -1) ../only-option/src/MultiRules.php:10 - - ---------- begin diff ---------- -@@ Line 10 @@ - echo 'a statement'; - } - } -- -- private function notUsed() -- { -- } - } - ----------- end diff ----------- - -Applied rules: - * RemoveUnusedPrivateMethodRector - - - [OK] 1 file would have been changed (dry-run) by Rector diff --git a/e2e/only-option-quote-single/rector.php b/e2e/only-option-quote-single/rector.php deleted file mode 100644 index ad19381b8b4..00000000000 --- a/e2e/only-option-quote-single/rector.php +++ /dev/null @@ -1,18 +0,0 @@ -paths([ - __DIR__ . '/../only-option/src', - ]); - - $rectorConfig->rules([ - RemoveAlwaysElseRector::class, - RemoveUnusedPrivateMethodRector::class, - ]); -}; diff --git a/e2e/only-option-quote-double-equalnone/cli-options.txt b/e2e/only-option/cli-options-quote-double-equalnone.txt similarity index 100% rename from e2e/only-option-quote-double-equalnone/cli-options.txt rename to e2e/only-option/cli-options-quote-double-equalnone.txt diff --git a/e2e/only-option-quote-single-bsdouble/cli-options.txt b/e2e/only-option/cli-options-quote-single-bsdouble.txt similarity index 100% rename from e2e/only-option-quote-single-bsdouble/cli-options.txt rename to e2e/only-option/cli-options-quote-single-bsdouble.txt diff --git a/e2e/only-option-quote-single-equalnone/cli-options.txt b/e2e/only-option/cli-options-quote-single-equalnone.txt similarity index 100% rename from e2e/only-option-quote-single-equalnone/cli-options.txt rename to e2e/only-option/cli-options-quote-single-equalnone.txt diff --git a/e2e/only-option-quote-single/cli-options.txt b/e2e/only-option/cli-options-quote-single.txt similarity index 100% rename from e2e/only-option-quote-single/cli-options.txt rename to e2e/only-option/cli-options-quote-single.txt diff --git a/e2e/print-new-node/.gitignore b/e2e/print-new-node/.gitignore deleted file mode 100644 index 61ead86667c..00000000000 --- a/e2e/print-new-node/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/vendor diff --git a/e2e/print-new-node/composer.json b/e2e/print-new-node/composer.json deleted file mode 100644 index 8b5ca727be7..00000000000 --- a/e2e/print-new-node/composer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "require": { - "php": "^8.1" - } -} diff --git a/e2e/print-new-node/expected-output.diff b/e2e/print-new-node/expected-output.diff deleted file mode 100644 index 7423bc78f19..00000000000 --- a/e2e/print-new-node/expected-output.diff +++ /dev/null @@ -1,22 +0,0 @@ -1 file with changes -=================== - -1) src/ExtendingTestClass.php:1 - - ---------- begin diff ---------- -@@ Line 1 @@ - paths([ - __DIR__ . '/src/TestClass.php', - __DIR__ . '/src/ExtendingTestClass.php', - ]); - - $rectorConfig->rule(AddParamBasedOnParentClassMethodRector::class); -}; \ No newline at end of file diff --git a/e2e/print-new-node/src/ExtendingTestClass.php b/e2e/print-new-node/src/ExtendingTestClass.php deleted file mode 100644 index cef467fb61f..00000000000 --- a/e2e/print-new-node/src/ExtendingTestClass.php +++ /dev/null @@ -1,7 +0,0 @@ - Date: Mon, 10 Aug 2026 19:19:25 +0200 Subject: [PATCH 2/2] [e2e] Remove 4 more rule-only e2e tests, run the orphaned rules-summary-option * applied-rule-change-docblock - RenameClassRector on a docblock is covered by applied-auto-import, RemoveUselessVarTagRector by config-dist-fallback and config-file-priority; DowngradeAttributeToAnnotationRector produced no change in its expected output at all * applied-rule-return-array-nodes - its src/ is byte-identical to only-option/src, with the same 2 rules * different-path-over-skip-config - covered by SkippedPathsResolverTest and SkipperRectorRuleTest * no-parallel-reflection-resolver - same fixture as parallel-reflection-resolver, and the non-parallel path is what every rules-test runs Found while auditing: rules-summary-option was in no workflow at all, so it never ran and its expected output had rotted to the pre "@@ Line N @@" hunk header format. Refreshed and added to the matrix, so "--rules-summary" is covered again. --- .github/workflows/e2e.yaml | 5 +- composer.json | 5 +- e2e/applied-rule-change-docblock/.gitignore | 1 - .../composer.json | 7 --- .../expected-output.diff | 40 ---------------- e2e/applied-rule-change-docblock/rector.php | 24 ---------- .../src/AlreadyChangedDocblock.php | 8 ---- .../src/RenameDocblock.php | 8 ---- .../src/UselessVarTag.php | 9 ---- .../.gitignore | 1 - .../composer.json | 7 --- .../expected-output.diff | 47 ------------------- .../rector.php | 19 -------- .../src/MultiRules.php | 17 ------- .../src/RemoveAlwaysElse.php | 13 ----- .../.gitignore | 1 - .../composer.json | 7 --- .../expected-output.diff | 21 --------- .../rector.php | 20 -------- .../src/controllers/DeadConstructor.php | 10 ---- .../src/models/DeadConstructor.php | 10 ---- .../.gitignore | 1 - .../composer.json | 5 -- .../expected-output.diff | 34 -------------- .../rector.php | 16 ------- .../src/NamespacedSomeClassFound.php | 10 ---- .../src/SomeClassNotFound.php | 8 ---- e2e/rules-summary-option/expected-output.diff | 8 ++-- 28 files changed, 6 insertions(+), 356 deletions(-) delete mode 100644 e2e/applied-rule-change-docblock/.gitignore delete mode 100644 e2e/applied-rule-change-docblock/composer.json delete mode 100644 e2e/applied-rule-change-docblock/expected-output.diff delete mode 100644 e2e/applied-rule-change-docblock/rector.php delete mode 100644 e2e/applied-rule-change-docblock/src/AlreadyChangedDocblock.php delete mode 100644 e2e/applied-rule-change-docblock/src/RenameDocblock.php delete mode 100644 e2e/applied-rule-change-docblock/src/UselessVarTag.php delete mode 100644 e2e/applied-rule-return-array-nodes/.gitignore delete mode 100644 e2e/applied-rule-return-array-nodes/composer.json delete mode 100644 e2e/applied-rule-return-array-nodes/expected-output.diff delete mode 100644 e2e/applied-rule-return-array-nodes/rector.php delete mode 100644 e2e/applied-rule-return-array-nodes/src/MultiRules.php delete mode 100644 e2e/applied-rule-return-array-nodes/src/RemoveAlwaysElse.php delete mode 100644 e2e/different-path-over-skip-config/.gitignore delete mode 100644 e2e/different-path-over-skip-config/composer.json delete mode 100644 e2e/different-path-over-skip-config/expected-output.diff delete mode 100644 e2e/different-path-over-skip-config/rector.php delete mode 100644 e2e/different-path-over-skip-config/src/controllers/DeadConstructor.php delete mode 100644 e2e/different-path-over-skip-config/src/models/DeadConstructor.php delete mode 100644 e2e/no-parallel-reflection-resolver/.gitignore delete mode 100644 e2e/no-parallel-reflection-resolver/composer.json delete mode 100644 e2e/no-parallel-reflection-resolver/expected-output.diff delete mode 100644 e2e/no-parallel-reflection-resolver/rector.php delete mode 100644 e2e/no-parallel-reflection-resolver/src/NamespacedSomeClassFound.php delete mode 100644 e2e/no-parallel-reflection-resolver/src/SomeClassNotFound.php diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index c9a19cf237f..1713ebf674e 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -26,18 +26,15 @@ jobs: directory: - 'e2e/applied-auto-import' - 'e2e/applied-polyfill-php80' - - 'e2e/applied-rule-change-docblock' - - 'e2e/applied-rule-return-array-nodes' - 'e2e/config-dist-fallback' - 'e2e/config-file-priority' - - 'e2e/different-path-over-skip-config' - - 'e2e/no-parallel-reflection-resolver' - 'e2e/only-option' - 'e2e/parallel-custom-config' - 'e2e/parallel-unused-skips' - 'e2e/parallel-reflection-resolver' - 'e2e/parallel with space' - 'e2e/phpstan-container-bootstrap' + - 'e2e/rules-summary-option' name: End to end test - ${{ matrix.directory }} diff --git a/composer.json b/composer.json index dd8901d5d78..4213c34423b 100644 --- a/composer.json +++ b/composer.json @@ -84,10 +84,7 @@ "tests" ], "Rector\\Utils\\PHPStan\\Tests\\": "utils/phpstan/tests", - "E2e\\Parallel\\Reflection\\Resolver\\": [ - "e2e/parallel-reflection-resolver/src/", - "e2e/no-parallel-reflection-resolver/src" - ], + "E2e\\Parallel\\Reflection\\Resolver\\": "e2e/parallel-reflection-resolver/src/", "Rector\\Scripts\\": "scripts/src" }, "classmap": [ diff --git a/e2e/applied-rule-change-docblock/.gitignore b/e2e/applied-rule-change-docblock/.gitignore deleted file mode 100644 index 61ead86667c..00000000000 --- a/e2e/applied-rule-change-docblock/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/vendor diff --git a/e2e/applied-rule-change-docblock/composer.json b/e2e/applied-rule-change-docblock/composer.json deleted file mode 100644 index 5468cd74606..00000000000 --- a/e2e/applied-rule-change-docblock/composer.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "require": { - "php": "^8.1" - }, - "minimum-stability": "dev", - "prefer-stable": true -} diff --git a/e2e/applied-rule-change-docblock/expected-output.diff b/e2e/applied-rule-change-docblock/expected-output.diff deleted file mode 100644 index 3acf9cf9ac2..00000000000 --- a/e2e/applied-rule-change-docblock/expected-output.diff +++ /dev/null @@ -1,40 +0,0 @@ -2 files with changes -==================== - -1) src/RenameDocblock.php:1 - - ---------- begin diff ---------- -@@ Line 1 @@ - paths([ - __DIR__ . '/src', - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'DateTime' => 'DateTimeInterface' - ]); - $rectorConfig->ruleWithConfiguration(DowngradeAttributeToAnnotationRector::class, [ - new DowngradeAttributeToAnnotation('Symfony\Component\Routing\Annotation\Route') - ]); - - $rectorConfig->rule(RemoveUselessVarTagRector::class); -}; diff --git a/e2e/applied-rule-change-docblock/src/AlreadyChangedDocblock.php b/e2e/applied-rule-change-docblock/src/AlreadyChangedDocblock.php deleted file mode 100644 index 3c839fbfa12..00000000000 --- a/e2e/applied-rule-change-docblock/src/AlreadyChangedDocblock.php +++ /dev/null @@ -1,8 +0,0 @@ -paths([ - __DIR__ . '/src', - ]); - - $rectorConfig->rules([ - RemoveAlwaysElseRector::class, - RemoveUnusedPrivateMethodRector::class, - ]); -}; - diff --git a/e2e/applied-rule-return-array-nodes/src/MultiRules.php b/e2e/applied-rule-return-array-nodes/src/MultiRules.php deleted file mode 100644 index fc0db50a1fb..00000000000 --- a/e2e/applied-rule-return-array-nodes/src/MultiRules.php +++ /dev/null @@ -1,17 +0,0 @@ -paths([ - __DIR__ . '/src', - ]); - - $rectorConfig->skip([ - RemoveEmptyClassMethodRector::class => [ - __DIR__ . '/src/controllers', - ], - ]); - - $rectorConfig->rule(RemoveEmptyClassMethodRector::class); -}; diff --git a/e2e/different-path-over-skip-config/src/controllers/DeadConstructor.php b/e2e/different-path-over-skip-config/src/controllers/DeadConstructor.php deleted file mode 100644 index 5d1dd2c8144..00000000000 --- a/e2e/different-path-over-skip-config/src/controllers/DeadConstructor.php +++ /dev/null @@ -1,10 +0,0 @@ -disableParallel(); - - $rectorConfig->paths([ - __DIR__ . '/src/', - ]); - - $rectorConfig->rule(RemoveUnusedPrivatePropertyRector::class); -}; diff --git a/e2e/no-parallel-reflection-resolver/src/NamespacedSomeClassFound.php b/e2e/no-parallel-reflection-resolver/src/NamespacedSomeClassFound.php deleted file mode 100644 index 0fc6a46b185..00000000000 --- a/e2e/no-parallel-reflection-resolver/src/NamespacedSomeClassFound.php +++ /dev/null @@ -1,10 +0,0 @@ -