public function __construct()
 {
     if (self::$editor === NULL and isset(NetteDebug::get()->editor)) {
         self::$editor = NetteDebug::get()->editor;
     }
 }
 /** Zaregistruje zpet Debug */
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     if (NetteDebug::get()->isEnabled() and $this->netteDebugHandler) {
         set_error_handler($this->netteDebugHandler);
     }
     if ($this->testStatus == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
         $this->successful++;
     }
     parent::endTest($test, $time);
 }