/** * 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()); } }
/** * 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); } }