/**
  * Get the stderr object for the console error handling.
  *
  * @return ConsoleOutput
  */
 public static function getStderr()
 {
     if (empty(self::$stderr)) {
         self::$stderr = new ConsoleOutput('php://stderr');
     }
     return self::$stderr;
 }
 /**
  * setup, create mocks
  *
  * @return Mock object
  */
 public function setUp()
 {
     parent::setUp();
     $this->Error = $this->getMock('ConsoleErrorHandler', array('_stop'));
     ConsoleErrorHandler::$stderr = $this->getMock('ConsoleOutput', array(), array(), '', false);
 }