Example #1
0
 /**
  * Test JSON decode on malformed JSON
  * @expectedException Exception
  * @expectedExceptionMessage Syntax error, malformed JSON
  */
 function testJSONDecodeMalformed()
 {
     $json = '{hello: "world}';
     Utils::jsonDecode($json);
 }