Example #1
0
 /**
  * prepare a deserialized copy of a json response
  *
  * @param object $response Response containing our return value as raw json
  *
  * @return \Symfony\Component\BrowserKit\Response response
  *
  * @todo use JMSSerializer for additional JSON validation
  */
 protected function filterResponse($response)
 {
     $this->results = json_decode($response->getContent());
     return parent::filterResponse($response);
 }
 /**
  * Filters the origin response to the BrowserKit one.
  *
  * @param object $response The origin response to filter
  *
  * @return Response An BrowserKit Response instance
  */
 protected function filterResponse($response)
 {
     return $this->subject->filterResponse($response);
 }