getErrorOutput() public method

This method will only return a valid value after the command has been executed.
public getErrorOutput ( ) : string
return string
Example #1
0
 /**
  * @depends testRun
  */
 public function testGetErrorOutput()
 {
     $closure = function () {
         echo 'Do nothing';
     };
     $callback = new Callback($closure);
     // Output must be null before the command is run
     $this->assertNull($callback->getErrorOutput());
     $callback->run();
     // Output must remain null after the command is run with the given $closure
     $this->assertNull($callback->getErrorOutput());
 }