targetFile('path1/file1.html')); self::assertFileNotExists($this->targetFile('path2/file2.html')); } protected function getFixturesDirectory(): string { return 'BuilderCustomScannerFinder'; } protected function configureBuilder(Builder $builder): void { $finder = new Finder(); $finder->exclude('path2'); $builder->setScannerFinder($finder); } }