Exemple #1
0
 public function testGetComment()
 {
     $commit = new GitPHP_Commit($this->getMockBuilder('GitPHP_Project')->disableOriginalConstructor()->getMock(), '1234567890abcdef1234567890ABCDEF12345678', $this->getMockCommitLoader());
     $this->assertEquals(array('commit line 1 commit line 1 commit line 1 commit line 1', 'commit line 2'), $commit->GetComment());
     $this->assertEquals(array('commit line 1 commit line 1 commit line 1 commit line 1', 'commit line 2'), $commit->GetComment());
     //cached
 }