/** * @dataProvider getSuccessfulResponses */ public function testIsSuccessful($response) { $event = Event::success($response); $this->assertTrue($event->isSuccessful()); }
/** * @param ResponseInterface $response */ public function handleSuccess(ResponseInterface $response) { $event = Event::success($response); $this->getDispatcher()->dispatch(EventDispatcherInterface::EVENT_REQUEST_SUCCESS, $event); }