public function setUp() { parent::setUp(); $this->head = CommitTest::getStubCommit($this, $this->commitHash, function ($commit) { $commit->gerritChangeId()->once()->return_value($this->changeId); }); }
public function setUp() { /** @var GerritConfig $gerritConfig */ $gerritConfigs = $this->getMock('Bart\\Configuration\\GerritConfig', array(), array(), '', false); $gerritConfigs->expects($this->once())->method('host')->will($this->returnValue('gerrit.example.com')); $gerritConfigs->expects($this->once())->method('sshPort')->will($this->returnValue(29418)); $gerritConfigs->expects($this->once())->method('sshUser')->will($this->returnValue('gerrit')); $gerritConfigs->expects($this->once())->method('sshKeyFile')->will($this->returnValue('~/.ssh/keyFile')); $this->gerritConfigs = $gerritConfigs; parent::setUp(); }
public function setUp() { TestConfigurationsHelper::reset(); parent::setUp(); }
public function setUp() { parent::setUp(); putenv('GITOSIS_USER='******'abcde123', 'bart.git'); }
public function setUp() { $this->opts = array('wsdl' => 'some random path', 'key' => 'val'); $this->soap = $this->getMock('\\SoapClient', array(), array(), '', false); parent::setUp(); }
public function setUp() { parent::setUp(); $this->stubConfigs(); }