mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
29 lines
596 B
PHP
29 lines
596 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Utils\Rector\Tests\Rector\__Name__;
|
||
|
|
||
|
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
||
|
|
||
|
final class __Name__Test 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';
|
||
|
}
|
||
|
}
|