getFinder() public method

public getFinder ( )
コード例 #1
0
 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
ファイル: ConfigTest.php プロジェクト: thekabal/tki
 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());
 }