rector/tests/FileSystem/FilesFinder/ExcludePaths/ExcludePathsTest.php
Tomas Votruba 20291b25c8
Upgrade to Symplify not using symfony/http-kernel (#1119)
* 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
2021-11-01 14:20:45 +01:00

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);
}
}