diff --git a/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/Fixture/fixture.php.inc b/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/Fixture/fixture.php.inc deleted file mode 100644 index 5c7723071f0..00000000000 --- a/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/Fixture/fixture.php.inc +++ /dev/null @@ -1,63 +0,0 @@ - ------ -anotherClassFactory = $anotherClassFactory; - } - public function run() - { - return $this->anotherClassFactory->create(); - } -} - -class AnotherClass -{ - /** - * @var \Rector\RemovingStatic\Tests\Rector\Class_\PassFactoryToEntityRector\Source\TurnMeToService - */ - private $turnMeToService; - public function __construct(\Rector\RemovingStatic\Tests\Rector\Class_\PassFactoryToEntityRector\Source\TurnMeToService $turnMeToService) - { - $this->turnMeToService = $turnMeToService; - } - public function someFun() - { - return $this->turnMeToService->someStaticCall(); - } -} - -?> diff --git a/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php b/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php index f7954d2fec0..8b13442d7dc 100644 --- a/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php +++ b/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php @@ -19,23 +19,6 @@ final class PassFactoryToEntityRectorTest extends AbstractRectorTestCase { $this->doTestFile($file); - // test factory content - $this->assertFileExists($this->getTempPath() . '/AnotherClassFactory.php'); - $this->assertFileEquals( - __DIR__ . '/Source/ExpectedAnotherClassFactory.php', - $this->getTempPath() . '/AnotherClassFactory.php' - ); - } - - /** - * @dataProvider provideDataMultipleArguments() - */ - public function testMultipleArguments(string $file): void - { - $this->markTestSkipped('Conflicting with previous test() for unknown reason. Works well separately'); - - $this->doTestFile($file); - // test factory content $this->assertFileExists($this->getTempPath() . '/AnotherClassWithMoreArgumentsFactory.php'); $this->assertFileEquals( @@ -45,11 +28,6 @@ final class PassFactoryToEntityRectorTest extends AbstractRectorTestCase } public function provideData(): Iterator - { - return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideDataMultipleArguments(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithMultipleArguments'); }