/**
  * @param Response $actualResponse
  * @param $filename
  *
  * @throws \Exception
  */
 private function assertXmlResponseContent(Response $actualResponse, $filename)
 {
     parent::assertResponseContent($this->prettifyXml($actualResponse->getContent()), $filename, 'xml');
 }
 /**
  * Asserts that response has JSON content matching the one given in file.
  *
  * @param Response $response
  * @param string $filename
  *
  * @throws \Exception
  */
 private function assertJsonResponseContent(Response $response, $filename)
 {
     $content = $response->getContent();
     parent::assertResponseContent($this->prettifyJson($content), $filename, 'json');
 }