예제 #1
0
 public function __construct()
 {
     if (self::$editor === NULL and isset(NetteDebug::get()->editor)) {
         self::$editor = NetteDebug::get()->editor;
     }
 }
예제 #2
0
 /** 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);
 }