Skip to content

Commit

Permalink
adding suport marshal json hash
Browse files Browse the repository at this point in the history
  • Loading branch information
euprogramador committed Jul 30, 2010
1 parent 7df078b commit ffa6fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/unit/RestfulieTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testJsonMediaTypeUmashal(){
public function testJSONMediaTypeMashal(){
$mediatype = new MediaTypeJSON();
$hash = "{\"item\":{\"name\":\"calpis\",\"price\":12.4}}";
$resource = json_decode();
$resource = json_decode($hash);

$json = $mediatype->marshal($resource);
$expected_result = $hash;
Expand Down

0 comments on commit ffa6fc6

Please sign in to comment.