Merge pull request #355 from pimpreneil/fixtures_symfix

Fix #257 - Prevent symlink paths resolving in fixtures loading
This commit is contained in:
Toni Uebernickel 2015-12-03 18:13:32 +01:00
commit ead5be068e

View file

@ -279,7 +279,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);