rector/templates/custom-rules-annotations/utils/rector/tests/Rector/__Name__/__Name__Test.php
Tomas Votruba 9204913593 Updated Rector to commit a69e1ff013720727f052437d051ca5ab2c11b89e
a69e1ff013 Add PHPUnit 9 annotations support detectoin in "custom-rule" command, add RectorConfig::withPreparedSets() (#5506)
2024-01-26 21:43:08 +00:00

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';
}
}