public function testXmlDecorator() { // Wrap service with a JSON decorator for renderers $service = new Decorator\RenderInXml($this->service); // Our Renderer will now output XML instead of an array return $service->renderData(); }
public function testXmlDecorator() { // Wrap service with a JSON decorator for renderers $service = new Decorator\RenderInXml($this->service); // Our Renderer will now output XML instead of an array $xml = '<?xml version="1.0"?><foo>bar</foo>'; $this->assertXmlStringEqualsXmlString($xml, $service->renderData()); }