Exemple #1
0
 public function testCorrectOutput()
 {
     $result = array(new ShellResult(0, 'master' . PHP_EOL . 'gh-pages' . PHP_EOL, ''));
     $mockExecutor = new MockCommandExecutor(new MockCommandBuilder($result, '/usr/bin/git'));
     $meta = new Meta($mockExecutor);
     $actualBranchList = $meta->getAllBranches();
     $this->assertEquals(array(new Branch('master'), new Branch('gh-pages')), $actualBranchList);
 }