setPresenter() public method

public setPresenter ( PHPSpec2\Formatter\Presenter\PresenterInterface $presenter )
$presenter PHPSpec2\Formatter\Presenter\PresenterInterface
Beispiel #1
0
 protected function createFormatter($format, Presenter\PresenterInterface $presenter, Listener\StatisticsCollector $collector)
 {
     if ('progress' === $format) {
         $formatter = new Formatter\ProgressFormatter();
     } else {
         $formatter = new Formatter\PrettyFormatter();
     }
     $formatter->setIO($this->io);
     $formatter->setPresenter($presenter);
     $formatter->setStatisticsCollector($collector);
     $this->dispatcher->addSubscriber($formatter);
     return $formatter;
 }