Пример #1
0
 public function testNullParents()
 {
     $commit = new Commit(self::$repository, '5ff8ff94448ef3882daf4b9121b847d8540a065b');
     $this->assertEquals(0, count($commit->getParentHashes()), 'Commit has no parent hash');
     $this->assertEquals(0, count($parents = $commit->getParents()), 'Commit has no parent');
 }