SimpleShell::getOutput PHP Method

getOutput() public method

Accessor for the last output.
public getOutput ( ) : string
return string Output as text.
    public function getOutput()
    {
        return implode("\n", $this->output);
    }

Usage Example

Example #1
0
 /**
  *    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;
 }
All Usage Examples Of SimpleShell::getOutput