protected function setUp() { $component = Yii::createComponent(array('class' => 'application.extensions.simpleWorkflow.SWPhpWorkflowSource', 'basePath' => 'application.tests.unit.task.workflows')); Yii::app()->setComponent('swSource', $component); Task_2_Test::$task2 = null; parent::setUp(); }
public function runTask2($owner, $sourceStatus, $targetStatus, $params) { Task_2_Test::$task2 = array('owner' => $owner, 'sourceStatus' => $sourceStatus, 'targetStatus' => $targetStatus, 'params' => $params); }
public function task2($params) { $this->_traceFunctionCall(__FUNCTION__); Task_2_Test::$task2 = array('params' => $params); }