public function testGetIterator() { $repository = new Repository(__DIR__ . self::REPOSITORY_NAME . "/.git"); $index = $repository->getIndex(); $index->add("example"); $index->write(); $it = $index->getIterator(); $this->assertInstanceOf("Iterator", $it); }