mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
Revert "remove unused file"
This reverts commit c50621c4f92e18071e046a8f2137d029563a81f7.
This commit is contained in:
parent
c50621c4f9
commit
21238589fe
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Rector\Autodiscovery\Tests\Rector\FileSystem\MoveEntitiesToEntityDirectoryRector\Source\Entity;
|
||||||
|
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\Entity
|
||||||
|
*/
|
||||||
|
final class RandomEntity
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -13,12 +13,12 @@ final class MoveEntitiesToEntityDirectoryRectorTest extends AbstractFileSystemRe
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideData()
|
* @dataProvider provideData()
|
||||||
*/
|
*/
|
||||||
public function test(string $originalFile, string $expectedFileLocation): void
|
public function test(string $originalFile, string $expectedFileLocation, string $expectedFileContent): void
|
||||||
{
|
{
|
||||||
$this->doTestFile($originalFile);
|
$this->doTestFile($originalFile);
|
||||||
|
|
||||||
$this->assertFileExists($expectedFileLocation);
|
$this->assertFileExists($expectedFileLocation);
|
||||||
$this->assertFileEquals($expectedFileLocation, $expectedFileLocation);
|
$this->assertFileEquals($expectedFileContent, $expectedFileLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideData(): Iterator
|
public function provideData(): Iterator
|
||||||
@ -26,6 +26,7 @@ final class MoveEntitiesToEntityDirectoryRectorTest extends AbstractFileSystemRe
|
|||||||
yield [
|
yield [
|
||||||
__DIR__ . '/Source/Controller/RandomEntity.php',
|
__DIR__ . '/Source/Controller/RandomEntity.php',
|
||||||
__DIR__ . '/Source/Entity/Fixture/RandomEntity.php',
|
__DIR__ . '/Source/Entity/Fixture/RandomEntity.php',
|
||||||
|
__DIR__ . '/Expected/ExpectedRandomEntity.php',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user