public function FinderTest::testFilter in Database Sanitize 7
File
- vendor/
symfony/ finder/ Tests/ FinderTest.php, line 259
Class
Namespace
Symfony\Component\Finder\TestsCode
public function testFilter() {
$finder = $this
->buildFinder();
$this
->assertSame($finder, $finder
->filter(function (\SplFileInfo $f) {
return false !== strpos($f, 'test');
}));
$this
->assertIterator($this
->toAbsolute(array(
'test.php',
'test.py',
)), $finder
->in(self::$tmpDir)
->getIterator());
}