Fix #257 - Prevent symlink paths resolving in fixtures loading

This commit is contained in:
Arnaud Lejosne 2015-08-13 13:28:21 +02:00
commit 0ce540c84a

View file

@ -277,7 +277,9 @@ EOT
protected function getFixtureFiles($type = 'sql', $in = null)
{
$finder = new Finder();
$finder->sortByName()->name('*.' . $type);
$finder->sort(function ($a, $b) {
return strcmp($a->getPathname(), $b->getPathname());
})->name('*.' . $type);
$files = $finder->in(null !== $in ? $in : $this->absoluteFixturesPath);