service = new Decorator\Webservice(array('foo' => 'bar')); } public function testJsonDecorator() { // Wrap service with a JSON decorator for renderers $service = new Decorator\RenderInJson($this->service); // Our Renderer will now output JSON instead of an array $this->assertEquals('{"foo":"bar"}', $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 $this->assertXmlStringEqualsXmlString('bar', $service->renderData()); } public function testDecoratorImplementsRenderer() { $this->markTestIncomplete(); } }