From 2f5ab4bf09cb9bbea2a23117ce1429718286430d Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Wed, 30 Oct 2024 22:37:32 +0100 Subject: [PATCH] [TASK] Remove test for experimental rule See: #1883 See: #1970 --- .../substitute_objectmanager_get.php.inc | 38 ------------------- ...stitute_objectmanagerinterface_get.php.inc | 38 ------------------- ...thGeneralUtilityMakeInstanceRectorTest.php | 31 --------------- .../config/configured_rule.php | 20 ---------- 4 files changed, 127 deletions(-) delete mode 100644 tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanager_get.php.inc delete mode 100644 tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanagerinterface_get.php.inc delete mode 100644 tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRectorTest.php delete mode 100644 tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/config/configured_rule.php diff --git a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanager_get.php.inc b/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanager_get.php.inc deleted file mode 100644 index d5c9f4028..000000000 --- a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanager_get.php.inc +++ /dev/null @@ -1,38 +0,0 @@ -objectManager->get(Service::class); - } -} - -?> ------ - diff --git a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanagerinterface_get.php.inc b/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanagerinterface_get.php.inc deleted file mode 100644 index f0a4df447..000000000 --- a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/Fixture/substitute_objectmanagerinterface_get.php.inc +++ /dev/null @@ -1,38 +0,0 @@ -objectManager->get(Service::class); - } -} - -?> ------ - diff --git a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRectorTest.php b/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRectorTest.php deleted file mode 100644 index 46d817bbc..000000000 --- a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRectorTest.php +++ /dev/null @@ -1,31 +0,0 @@ -doTestFile($filePath); - } - - /** - * @return \Iterator> - */ - public static function provideData(): \Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/configured_rule.php'; - } -} diff --git a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/config/configured_rule.php b/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/config/configured_rule.php deleted file mode 100644 index a06ee2b0c..000000000 --- a/tests/Rector/v10/v4/SubstituteObjectManagerGetWithGeneralUtilityMakeInstanceRector/config/configured_rule.php +++ /dev/null @@ -1,20 +0,0 @@ -import(__DIR__ . '/../../../../../../config/config_test.php'); - - $rectorConfig - ->ruleWithConfiguration(MethodCallToStaticCallRector::class, [ - new MethodCallToStaticCall(ObjectManagerInterface::class, 'get', GeneralUtility::class, 'makeInstance'), - new MethodCallToStaticCall(ObjectManager::class, 'get', GeneralUtility::class, 'makeInstance'), - ]); -};