rector/tests/Exclusion/ExclusionManagerTest.php

37 lines
766 B
PHP

<?php
declare(strict_types=1);
namespace Rector\Core\Tests\Exclusion;
use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
/**
* @see \Rector\Core\Exclusion\ExclusionManager
*/
final class ExclusionManagerTest extends AbstractRectorTestCase
{
/**
* @dataProvider provideData()
*/
public function test(SmartFileInfo $fileInfo): void
{
$this->doTestFileInfo($fileInfo);
}
/**
* @return Iterator<SmartFileInfo>
*/
public function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
}
public function provideConfigFilePath(): string
{
return __DIR__ . '/config/some_config.php';
}
}