getModule('REST')->grabResponse(); $array = json_decode($json); $this->assertTrue(array_key_exists($key, $array)); } function seeJsonKeyDoesNotExists($key) { $json = $this->getModule('REST')->grabResponse(); $array = json_decode($json); $this->assertFalse(array_key_exists($key, $array)); } }