/** * @expectedException Rtm\Exception */ public function testCreateInvalidResponse() { $json = '{"rsp": {"stat": "err", "err": {"msg": "Test error", "code": 123}}}'; $client = new Client(); $response = $client->createResponse($json); }