mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 11:50:51 +00:00
602aa13f7c
Co-authored-by: GitHub Action <action@github.com>
35 lines
872 B
PHP
35 lines
872 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\Php74\Rector\Function_\ReservedFnFunctionRector;
|
|
|
|
use Iterator;
|
|
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
|
use Symplify\SmartFileSystem\SmartFileInfo;
|
|
|
|
final class ReservedFnFunctionRectorTest extends AbstractRectorTestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideData()
|
|
*/
|
|
public function test(SmartFileInfo $fileInfo): void
|
|
{
|
|
$this->markTestSkipped('Requires tweaked PHP Parser to verify `fn` as valid function to simulate php <7.4');
|
|
$this->doTestFileInfo($fileInfo);
|
|
}
|
|
|
|
/**
|
|
* @return Iterator<SmartFileInfo>
|
|
*/
|
|
public function provideData(): Iterator
|
|
{
|
|
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
|
}
|
|
|
|
public function provideConfigFilePath(): string
|
|
{
|
|
return __DIR__ . '/config/configured_rule.php';
|
|
}
|
|
}
|