mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
28 lines
660 B
PHP
28 lines
660 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\Issues\Issue594;
|
|
|
|
use Iterator;
|
|
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
|
|
|
final class Issue594Test extends AbstractRectorTestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideWrongToFixedFiles()
|
|
*/
|
|
public function test(string $wrong, string $fixed): void
|
|
{
|
|
$this->doTestFileMatchesExpectedContent($wrong, $fixed);
|
|
}
|
|
|
|
public function provideWrongToFixedFiles(): Iterator
|
|
{
|
|
yield [__DIR__ . '/Wrong/wrong594.php', __DIR__ . '/Correct/correct594.php'];
|
|
}
|
|
|
|
protected function provideConfig(): string
|
|
{
|
|
return __DIR__ . '/config594.yml';
|
|
}
|
|
}
|