You are here

public function FinderTest::testAppendWithAnArray in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

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