/**
  * Register error handler
  *
  * @param GetResponseEvent $event
  */
 public function onKernelRequest(GetResponseEvent $event)
 {
     $this->errorHandler->registerErrorHandler($this->notifier);
     $this->errorHandler->registerShutdownHandler($this->notifier);
 }
 function it_registers_handlers_on_kernel_request(ErrorHandler $errorHandler, Notifier $notifier, GetResponseEvent $event)
 {
     $errorHandler->registerErrorHandler($notifier)->shouldBeCalled();
     $errorHandler->registerShutdownHandler($notifier)->shouldBeCalled();
     $this->onKernelRequest($event);
 }