rector/rules-tests/Php74/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php
Abdul Malik Ikhsan 602aa13f7c
[Transform]Move ReservedFnFunctionRector to Php74 namespace (#1471)
Co-authored-by: GitHub Action <action@github.com>
2021-12-27 18:06:03 +01:00

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