You are here

public function FinderTest::testFiles in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testFiles() {
  $finder = $this
    ->buildFinder();
  $this
    ->assertSame($finder, $finder
    ->files());
  $this
    ->assertIterator($this
    ->toAbsolute(array(
    'foo/bar.tmp',
    'test.php',
    'test.py',
    'foo bar',
  )), $finder
    ->in(self::$tmpDir)
    ->getIterator());
  $finder = $this
    ->buildFinder();
  $finder
    ->files();
  $finder
    ->directories();
  $finder
    ->files();
  $this
    ->assertIterator($this
    ->toAbsolute(array(
    'foo/bar.tmp',
    'test.php',
    'test.py',
    'foo bar',
  )), $finder
    ->in(self::$tmpDir)
    ->getIterator());
}