mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-10 05:02:23 +00:00
20291b25c8
* trigger CI * upgrade to symplify configs instead of bundles * update config files infos to config files * use ConfigureCallMerginLoaderFactory * remove symfony/http-kernel * remove symplify/phpstan-twig-rules
22 lines
599 B
PHP
22 lines
599 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Core\Tests\FileSystem\FilesFinder\ExcludePaths;
|
|
|
|
use Rector\Core\FileSystem\FilesFinder;
|
|
use Rector\Testing\PHPUnit\AbstractTestCase;
|
|
|
|
final class ExcludePathsTest extends AbstractTestCase
|
|
{
|
|
public function testShouldFail(): void
|
|
{
|
|
$this->bootFromConfigFiles([__DIR__ . '/config/config-with-excluded-paths.php']);
|
|
|
|
$filesFinder = $this->getService(FilesFinder::class);
|
|
|
|
$foundFileInfos = $filesFinder->findInDirectoriesAndFiles([__DIR__ . '/Source'], ['php']);
|
|
$this->assertCount(1, $foundFileInfos);
|
|
}
|
|
}
|