pharext\GitSourceDirTest::testIterator PHP Method

testIterator() public method

public testIterator ( )
    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);
    }