You are here

public function FinderTest::testIn in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testIn() {
  $finder = $this
    ->buildFinder();
  $iterator = $finder
    ->files()
    ->name('*.php')
    ->depth('< 1')
    ->in(array(
    self::$tmpDir,
    __DIR__,
  ))
    ->getIterator();
  $expected = array(
    self::$tmpDir . \DIRECTORY_SEPARATOR . 'test.php',
    __DIR__ . \DIRECTORY_SEPARATOR . 'FinderTest.php',
    __DIR__ . \DIRECTORY_SEPARATOR . 'GlobTest.php',
  );
  $this
    ->assertIterator($expected, $iterator);
}