Revert "remove unused file"

This reverts commit c50621c4f92e18071e046a8f2137d029563a81f7.
This commit is contained in:
TomasVotruba 2020-03-09 15:54:35 +01:00
parent c50621c4f9
commit 21238589fe
2 changed files with 18 additions and 2 deletions

View File

@ -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
{
}

View File

@ -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',
]; ];
} }