mirror of https://github.com/rectorphp/rector.git
30 lines
629 B
PHP
30 lines
629 B
PHP
<?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()
|
|
*/
|
|
public function test(string $filePath): void
|
|
{
|
|
$this->doTestFile($filePath);
|
|
}
|
|
|
|
public static function provideData(): Iterator
|
|
{
|
|
return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
|
}
|
|
|
|
public function provideConfigFilePath(): string
|
|
{
|
|
return __DIR__ . '/config/configured_rule.php';
|
|
}
|
|
}
|