mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-06 15:41:59 +00:00
31 lines
718 B
PHP
31 lines
718 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Sylius\Tests\Rector\Review;
|
|
|
|
use Iterator;
|
|
use Rector\Sylius\Rector\Review\ReplaceCreateMethodWithoutReviewerRector;
|
|
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
|
|
|
final class ReplaceCreateMethodWithoutReviewerRectorTest extends AbstractRectorTestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideDataForTest()
|
|
*/
|
|
public function test(string $file): void
|
|
{
|
|
$this->doTestFile($file);
|
|
}
|
|
|
|
public function provideDataForTest(): Iterator
|
|
{
|
|
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
|
}
|
|
|
|
protected function getRectorClass(): string
|
|
{
|
|
return ReplaceCreateMethodWithoutReviewerRector::class;
|
|
}
|
|
}
|