Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     stub($this->git_repository_factory)->getFromFullPath()->returns($this->repository);
 }
Exemplo n.º 2
0
 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'));
 }