mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 02:36:52 +01:00
39 lines
959 B
PHP
39 lines
959 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Core\Tests\Exclusion\Check;
|
|
|
|
use Iterator;
|
|
use Rector\Core\Testing\PHPUnit\AbstractRectorTestCase;
|
|
use Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector;
|
|
use Rector\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector;
|
|
use Symplify\SmartFileSystem\SmartFileInfo;
|
|
|
|
final class ExcludeByDocBlockExclusionCheckTest extends AbstractRectorTestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideData()
|
|
*/
|
|
public function test(SmartFileInfo $fileInfo): void
|
|
{
|
|
$this->doTestFileInfo($fileInfo);
|
|
}
|
|
|
|
public function provideData(): Iterator
|
|
{
|
|
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
|
}
|
|
|
|
/**
|
|
* @return mixed[]
|
|
*/
|
|
protected function getRectorsWithConfiguration(): array
|
|
{
|
|
return [
|
|
RemoveEmptyClassMethodRector::class => [],
|
|
RemoveDeadZeroAndOneOperationRector::class => [],
|
|
];
|
|
}
|
|
}
|