コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     stub($this->git_repository_factory)->getFromFullPath()->returns($this->repository);
 }
コード例 #2
0
ファイル: PostReceiveTest.php プロジェクト: rinodung/tuleap
 public function setUp()
 {
     parent::setUp();
     $this->push_details = stub('Git_Hook_PushDetails')->getRevisionList()->returns(array('469eaa9'));
     stub($this->log_analyzer)->getPushDetails()->returns($this->push_details);
     stub($this->git_repository_factory)->getFromFullPath()->returns($this->repository);
     stub($this->user_manager)->getUserByUserName()->returns(mock('PFUser'));
 }