/** * __toString */ public function testToString() { $this->getRepository()->init(); $this->addFile('test'); $this->getRepository()->commit('test commit', true); $b = Branch::checkout($this->getRepository(), 'master'); $this->assertEquals($this->getRepository()->getLog()->last()->getSha(), $b->__toString()); }