/** * Find all files matching *.txt and not being in 'nested' folder */ public function testRecursiveFindByIncludeAndExclude() { $tmp = new DirectoryScanner(); $tmp->addInclude('*.txt'); $tmp->addExclude('*/nested/*'); $x = $tmp->getFiles(__DIR__ . '/_data'); $this->assertEquals(1, count($x)); }