예제 #1
0
 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();
 }
예제 #2
0
 public function runTask2($owner, $sourceStatus, $targetStatus, $params)
 {
     Task_2_Test::$task2 = array('owner' => $owner, 'sourceStatus' => $sourceStatus, 'targetStatus' => $targetStatus, 'params' => $params);
 }
예제 #3
0
 public function task2($params)
 {
     $this->_traceFunctionCall(__FUNCTION__);
     Task_2_Test::$task2 = array('params' => $params);
 }