public function testGetAuthor() { $commit = new GitPHP_Commit($this->getMockBuilder('GitPHP_Project')->disableOriginalConstructor()->getMock(), '1234567890abcdef1234567890ABCDEF12345678', $this->getMockCommitLoader()); $this->assertEquals('author <authoremail>', $commit->GetAuthor()); $this->assertEquals('author <authoremail>', $commit->GetAuthor()); //cached }