} catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } function LoadUser($data, $fields) { try { $User = new Users(); $result = $User->load($fields['USR_UID']); return $result; } catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } function RemoveUser($data, $fields) { try { $User = new Users(); $result = $User->remove($fields['USR_UID']); return $result; } catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } } $test = new UserTest('user.yml', $t); $test->domain->addDomain('CREATED'); $test->load('CreateTestUsers'); $test->runAll(); $test->load('UserUnitTest'); $test->runAll();