getFinder() публичный Метод

public getFinder ( )
 public function testResolvePathWithFileThatIsNotExcluded()
 {
     $dir = __DIR__;
     $this->config->getFinder()->in($dir)->notPath('foo-' . basename(__FILE__));
     $this->resolver->setOption('path', array(__FILE__))->resolve();
     $this->assertCount(1, $this->resolver->getConfig()->getFinder());
 }
Пример #2
0
 public function testThatFinderWorksWithDirSetOnConfig()
 {
     $config = new Config();
     $iterator = $config->getFinder()->in(__DIR__ . '/Fixtures/FinderDirectory')->getIterator();
     $this->assertSame(1, count($iterator));
     $iterator->rewind();
     $this->assertSame('somefile.php', $iterator->current()->getFilename());
 }