Ejemplo n.º 1
0
 /**
  * @param Response $actualResponse
  * @param $filename
  *
  * @throws \Exception
  */
 private function assertXmlResponseContent(Response $actualResponse, $filename)
 {
     parent::assertResponseContent($this->prettifyXml($actualResponse->getContent()), $filename, 'xml');
 }
Ejemplo n.º 2
0
 /**
  * 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');
 }