Example #1
0
 /**
  * @dataProvider getUnsuccessfulExceptions
  */
 public function testIsNotSuccessful(RequestException $exception)
 {
     $event = Event::error($exception);
     $this->assertFalse($event->isSuccessful());
 }
 /**
  * @param RequestException $e
  */
 public function handleError(RequestException $e)
 {
     $event = Event::error($e);
     $this->getDispatcher()->dispatch(EventDispatcherInterface::EVENT_REQUEST_ERROR, $event);
 }