public function testRenderAsXml()
 {
     $response = new Response(array('foo' => 'bar', 'halland' => 'oates'));
     $string = $response->getResponseBody('xml');
     $this->assertContains('<response><foo>bar</foo><halland>oates</halland></response>', $string);
 }
Example #2
0
 public function testRenderAsXml()
 {
     $response = new Response(array('foo' => 'bar', 'halland' => 'oates'));
     $string = $response->getResponseBody('xml');
     $this->assertContains('<response><bar>foo</bar><oates>halland</oates></response>', $string);
 }