/** * @expectedException RuntimeException */ public function testIsNotParsingWithoutData() { $format = new PrettyFormat(); $format->parse(''); }
/** * 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); }