public function execute($command) { $this->output = false; exec($command, $this->output, $ret); return $ret; }
/** * Accessor for the number of subtests. * @return integer Number of test cases. * @access public */ function getSize() { if ($this->_size === false) { $shell = new SimpleShell(); $shell->execute($this->_dry_command); $reporter = new SimpleReporter(); $parser = &$this->_createParser($reporter); if (! $parser->parse($shell->getOutput())) { trigger_error('Cannot parse incoming XML from [' . $this->_dry_command . ']'); return false; } $this->_size = $reporter->getTestCaseCount(); } return $this->_size; }