mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 10:43:35 +01:00
28 lines
746 B
PHP
28 lines
746 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\FileSystem\FilesFinder\ExcludePaths;
|
|
|
|
use Rector\FileSystem\FilesFinder;
|
|
use Rector\Tests\AbstractConfigurableContainerAwareTestCase;
|
|
|
|
final class ExcludePathsTest extends AbstractConfigurableContainerAwareTestCase
|
|
{
|
|
/**
|
|
* @var FilesFinder
|
|
*/
|
|
private $filesFinder;
|
|
|
|
public function testShouldFail(): void
|
|
{
|
|
$this->filesFinder = $this->container->get(FilesFinder::class);
|
|
$splFileInfos = $this->filesFinder->findInDirectoriesAndFiles([__DIR__ . '/Source'], ['php']);
|
|
|
|
$this->assertCount(1, $splFileInfos);
|
|
}
|
|
|
|
protected function provideConfig(): string
|
|
{
|
|
return __DIR__ . '/config/config-with-excluded-paths.yaml';
|
|
}
|
|
}
|