} catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } function LoadStep($data, $fields) { try { $Step = new Step(); $result = $Step->load($fields['STEP_UID']); return $result; } catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } function RemoveStep($data, $fields) { try { $Step = new Step(); $result = $Step->remove($fields['STEP_UID']); return $result; } catch (Exception $e) { return array('Exception!! ' => $e->getMessage()); } } } $test = new StepTest('step.yml', $t); $test->domain->addDomain('CREATED'); $test->load('CreateTestSteps'); $test->runAll(); $test->load('StepUnitTest'); $test->runAll();