mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-21 01:41:00 +01:00
37 lines
766 B
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';
|
|
}
|
|
}
|