public function FinderTest::testRelativePath in Database Sanitize 7
File
- vendor/
symfony/ finder/ Tests/ FinderTest.php, line 359
Class
Namespace
Symfony\Component\Finder\TestsCode
public function testRelativePath() {
$finder = $this
->buildFinder()
->in(self::$tmpDir);
$paths = array();
foreach ($finder as $file) {
$paths[] = $file
->getRelativePath();
}
$ref = array(
'',
'',
'',
'',
'foo',
'',
);
sort($ref);
sort($paths);
$this
->assertEquals($ref, $paths);
}