public function testReadExcludeLines_WhenNoReadPermission_MustNotThrow() { $root = vfsStream::setup(); $file = vfsStream::newFile('.gitignore')->at($root)->setContent('foo'); $finder = DefaultFinder::createIn($root->url()); $this->assertSame(0, $finder->count()); }
/** * @param string|array $dirs * * @return static */ public static function createIn($dirs) { $config = new static(); $config->finder(DefaultFinder::createIn($dirs)); return $config; }