Ejemplo n.º 1
0
 /**
  * Runs tests.
  *
  * @since Method available since Release 2.1.0
  */
 public function run()
 {
     $this->outputBuffering->clearOutputHandlers();
     $this->result = $this->runner->run($this->collector->collect());
     if ($this->runner->shouldNotify()) {
         $this->notifier->notifyResult($this->runner->getNotification());
     }
 }
Ejemplo n.º 2
0
 /**
  * Runs tests.
  *
  * @since Method available since Release 2.1.0
  */
 public function run()
 {
     $this->outputBuffering->clearOutputHandlers();
     $this->runner->run($this->collector->collect());
     if ($this->runner->shouldNotify()) {
         $notification = $this->runner->getNotification();
         if (is_null($notification)) {
             throw new \LogicException('The Notification object is not set to the Runner object.');
         }
         $this->notifyResult($notification);
     }
 }