You are here

public function FinderTest::testFilter in Database Sanitize 7

File

vendor/symfony/finder/Tests/FinderTest.php, line 259

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

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());
}