Esempio n. 1
0
 /**
  * @expectedException RuntimeException
  */
 public function testIsNotParsingWithoutData()
 {
     $format = new PrettyFormat();
     $format->parse('');
 }
Esempio n. 2
0
 /**
  * Get and parse the output of a git command with a XML-based pretty format.
  *
  * @param string $command Command to be run by git
  *
  * @return array Parsed command output
  */
 public function getPrettyFormat($command)
 {
     $output = $this->getClient()->run($this, $command);
     $format = new PrettyFormat();
     return $format->parse($output);
 }