getMessage(); } return $refreshParent; } check('setgroup with a group id', setgroup(array('gid' => '3')), true); check('setgroup without a group id clears the cookie', setgroup(array()), true); check('setgroup with an empty group id clears the cookie', setgroup(array('gid' => '')), true); echo "\n$passes passed, $failures failed\n"; exit($failures ? 1 : 0); }