コード例 #1
0
ファイル: HalTest.php プロジェクト: solvire/hal
 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'});
 }