} function LoadConfiguration($data, $fields) { try { $Configuration = new Configuration(); $result = $Configuration->load($fields['CFG_UID'], $fields['OBJ_UID'], $fields['PRO_UID'], $fields['USR_UID'], $fields['APP_UID']); return $result; } catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } function RemoveConfiguration($data, $fields) { try { $Configuration = new Configuration(); $result = $Configuration->remove($fields['CFG_UID'], $fields['OBJ_UID'], $fields['PRO_UID'], $fields['USR_UID'], $fields['APP_UID']); return $result; } catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } } $test = new ConfigurationTest('configuration.yml', $t); $test->domain->addDomain('CREATED_UID'); $test->domain->addDomain('CREATED_OBJ'); $test->domain->addDomain('CREATED_PRO'); $test->domain->addDomain('CREATED_USR'); $test->load('CreateTestConfigurations'); $test->runAll(); $test->load('ConfigurationUnitTest'); $test->runAll();