public function testIterator() { $git_files = `git ls-tree --name-only -r HEAD | xargs -I{} -n1 echo \$(pwd)/{}`; $dir_files = implode("\n", iterator_to_array($this->source->getIterator())) . "\n"; $this->assertSame($git_files, $dir_files); }