mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
c2d3d4a3b4
55227be6c3
Removing SmartFileInfo (#2879)
33 lines
682 B
PHP
33 lines
682 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);
|
|
}
|
|
|
|
/**
|
|
* @return Iterator<array<string>>
|
|
*/
|
|
public function provideData(): Iterator
|
|
{
|
|
return $this->yieldFilePathsFromDirectory(__DIR__ . '/Fixture');
|
|
}
|
|
|
|
public function provideConfigFilePath(): string
|
|
{
|
|
return __DIR__ . '/config/configured_rule.php';
|
|
}
|
|
}
|