30 lines
615 B
PHP

<?php
declare(strict_types=1);
namespace Rector\MysqlToMysqli\Tests;
use Iterator;
use Rector\Core\Testing\PHPUnit\AbstractRectorTestCase;
final class SetTest extends AbstractRectorTestCase
{
/**
* @dataProvider provideData()
*/
public function test(string $file): void
{
$this->doTestFile($file);
}
public function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
}
protected function provideConfig(): string
{
return __DIR__ . '/../../../config/set/database-migration/mysql-to-mysqli.yaml';
}
}