Пример #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);
 }