You are here

public function FinderTest::testAppendWithAFinder in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testAppendWithAFinder() {
  $finder = $this
    ->buildFinder();
  $finder
    ->files()
    ->in(self::$tmpDir . \DIRECTORY_SEPARATOR . 'foo');
  $finder1 = $this
    ->buildFinder();
  $finder1
    ->directories()
    ->in(self::$tmpDir);
  $finder = $finder
    ->append($finder1);
  $this
    ->assertIterator($this
    ->toAbsolute(array(
    'foo',
    'foo/bar.tmp',
    'toto',
  )), $finder
    ->getIterator());
}