Наследование: extends ResponseException
 /**
  * Tests the getResponse() method.
  */
 public function testGetResponse()
 {
     $exception = new AjaxRedirectResponseException('http://example.org');
     $response = $exception->getResponse();
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
     $this->assertEquals(204, $response->getStatusCode());
     $this->assertEquals('http://example.org', $response->headers->get('X-Ajax-Location'));
 }