Example #1
0
 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());
 }
Example #2
0
 /**
  * @param string|array $dirs
  *
  * @return static
  */
 public static function createIn($dirs)
 {
     $config = new static();
     $config->finder(DefaultFinder::createIn($dirs));
     return $config;
 }