You are here

public function FinderTest::testIteratorKeys in Database Sanitize 7

Iterator keys must be the file pathname.

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testIteratorKeys() {
  $finder = $this
    ->buildFinder()
    ->in(self::$tmpDir);
  foreach ($finder as $key => $file) {
    $this
      ->assertEquals($file
      ->getPathname(), $key);
  }
}