Beispiel #1
0
 public function testEpoch()
 {
     $strategymock = $this->getMock('GitPHP_ProjectLoadStrategy_Interface');
     $strategymock->expects($this->once())->method('LoadEpoch')->with($this->isInstanceOf('GitPHP_Project'))->will($this->returnValue('12345678'));
     $project = new GitPHP_Project(GITPHP_TEST_PROJECTROOT, 'testrepo.git', $strategymock);
     $this->assertEquals('12345678', $project->GetEpoch());
     $this->assertEquals('12345678', $project->GetEpoch());
     //cached
 }