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
Namespace
Symfony\Component\Finder\TestsCode
public function testIteratorKeys() {
$finder = $this
->buildFinder()
->in(self::$tmpDir);
foreach ($finder as $key => $file) {
$this
->assertEquals($file
->getPathname(), $key);
}
}