public function testStripAttributeMarkersIsNotCalledWhenRenderingWithStripAttributesSetToFalse() { $hal = new Hal('http://example.com/', array('@xml:key' => 'value')); $hal->setShouldStripAttributes(false); $json = json_decode($hal->asJson(true)); $this->assertEquals('value', $json->{'@xml:key'}); }