Esempio n. 1
0
 /**
  * verify that we always get an array, even if empty, when getting
  * data from the underlying implementation
  */
 public function testGetShowOutputReturnArray()
 {
     $remote = new Remote($this->getRepository());
     $actual = $remote->getShowOutput();
     $this->assertTrue(is_array($actual), 'getShowOutput() returns array');
 }
Esempio n. 2
0
 /**
  * @param string $name         remote name
  * @param bool   $queryRemotes Fetch new information from remotes
  *
  * @return \GitElephant\Objects\Remote
  */
 public function getRemote($name, $queryRemotes = true)
 {
     return Remote::pick($this, $name, $queryRemotes);
 }