コード例 #1
0
ファイル: RemoteTest.php プロジェクト: ocubom/GitElephant
 /**
  * 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');
 }
コード例 #2
0
ファイル: Repository.php プロジェクト: mlukman/gitsync
 /**
  * @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);
 }