curlRest('/groups/john.doe', '', 'application/json', 'GET'); $retDecoded = json_decode($ret, true); $this->assertTrue($ret != $retDecoded && $ret != null, "Invalid json string in return: $ret."); $this->assertTrue(isset($retDecoded['entry']) && isset($retDecoded['entry']["john.doe"]) && isset($retDecoded['entry']["john.doe"][0]) && $retDecoded['entry']["john.doe"][0] == '1', "Unexpected return value: $ret."); } }