src/FixturesLoader.php
private function loadFromIterator(\Iterator $iterator)
    {
        /* @var \SplFileInfo[] $iterator */
        foreach ($iterator as $file) {
            if ($file->getFilename() === 'fixtures.yml') {
                $this->addFixture($file->getPathname());
            }
        }
    }
private function loadFromIterator(\Iterator $iterator)
    {
        /* @var \SplFileInfo[] $iterator */
        foreach ($iterator as $file) {
            if ($file->getFilename() === 'fixtures.yml') {
                $this->addFixture($file->getPathname());
            }
        }
    }
Load fixtures from YML files contained in iterator.

@param \Iterator $iterator Iterator over files from which fixtures should be loaded.