2022-06-14 06:49:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Utils\Rector\Tests\Rector\RenameSimpleRector;
|
|
|
|
|
|
|
|
use Iterator;
|
|
|
|
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
|
|
|
|
|
|
|
final class RenameSimpleRectorTest extends AbstractRectorTestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @dataProvider provideData()
|
|
|
|
*/
|
2022-09-01 09:37:14 +00:00
|
|
|
public function test(string $filePath): void
|
2022-06-14 06:49:40 +00:00
|
|
|
{
|
2022-09-01 09:37:14 +00:00
|
|
|
$this->doTestFile($filePath);
|
2022-06-14 06:49:40 +00:00
|
|
|
}
|
|
|
|
|
2023-02-03 17:47:50 +00:00
|
|
|
public static function provideData(): Iterator
|
2022-06-14 06:49:40 +00:00
|
|
|
{
|
2023-02-03 17:47:50 +00:00
|
|
|
return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
2022-06-14 06:49:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function provideConfigFilePath(): string
|
|
|
|
{
|
|
|
|
return __DIR__ . '/config/configured_rule.php';
|
|
|
|
}
|
|
|
|
}
|