You are here

public function FinderTest::testInWithGlob in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testInWithGlob() {
  $finder = $this
    ->buildFinder();
  $finder
    ->in(array(
    __DIR__ . '/Fixtures/*/B/C/',
    __DIR__ . '/Fixtures/*/*/B/C/',
  ))
    ->getIterator();
  $this
    ->assertIterator($this
    ->toAbsoluteFixtures(array(
    'A/B/C/abc.dat',
    'copy/A/B/C/abc.dat.copy',
  )), $finder);
}