protected function setUp() { parent::setUp(); $this->execution = new ezcWorkflowTestExecution(); $this->plugin = $this->getMock('ezcWorkflowExecutionPlugin'); $this->execution->addPlugin($this->plugin); }
protected function setUp() { parent::setUp(); $this->execution = new ezcWorkflowTestExecution(); $this->listener = $this->getMock('ezcWorkflowExecutionListener'); $this->execution->addListener($this->listener); }
public function setUp() { parent::setUp(); $this->conn = \DoctrineExtensions\Workflow\TestHelper::getConnection(); $this->options = new WorkflowOptions('test_'); TestHelper::createSchema($this->options); $this->dbStorage = new DefinitionStorage($this->conn, $this->options); }
protected function setUp() { parent::setUp(); $this->tempDir = $this->createTempDir('ezcWorkflow_'); $this->visualizer = new ezcWorkflowExecutionVisualizerPlugin($this->tempDir); $this->execution = new ezcWorkflowTestExecution(); $this->execution->addPlugin($this->visualizer); }
protected function setUp() { parent::setUp(); try { $this->db = ezcDbInstance::get(); $this->cleanupTables($this->db); $schema = ezcDbSchema::createFromFile('array', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'workflow.dba'); $schema->writeToDb($this->db); $this->dbStorage = new ezcWorkflowDatabaseDefinitionStorage($this->db); } catch (Exception $e) { $this->markTestSkipped('No test database has been configured: ' . $e->getMessage()); } }
protected function setUp() { parent::setUp(); $this->execution = new ezcWorkflowTestExecution(); $this->plugin = new ezcWorkflowSignalSlotPlugin(); $this->execution->addPlugin($this->plugin); $this->receiver = new ezcWorkflowSignalSlotTestReceiver(); $this->signals = $this->plugin->signals; $this->signals->connect('afterExecutionStarted', array($this->receiver, 'afterExecutionStarted')); $this->signals->connect('afterExecutionSuspended', array($this->receiver, 'afterExecutionSuspended')); $this->signals->connect('afterExecutionResumed', array($this->receiver, 'afterExecutionResumed')); $this->signals->connect('afterExecutionCancelled', array($this->receiver, 'afterExecutionCancelled')); $this->signals->connect('afterExecutionEnded', array($this->receiver, 'afterExecutionEnded')); $this->signals->connect('beforeNodeActivated', array($this->receiver, 'beforeNodeActivated')); $this->signals->connect('afterNodeActivated', array($this->receiver, 'afterNodeActivated')); $this->signals->connect('afterNodeExecuted', array($this->receiver, 'afterNodeExecuted')); $this->signals->connect('afterThreadStarted', array($this->receiver, 'afterThreadStarted')); $this->signals->connect('afterThreadEnded', array($this->receiver, 'afterThreadEnded')); $this->signals->connect('beforeVariableSet', array($this->receiver, 'beforeVariableSet')); $this->signals->connect('afterVariableSet', array($this->receiver, 'afterVariableSet')); $this->signals->connect('beforeVariableUnset', array($this->receiver, 'beforeVariableUnset')); $this->signals->connect('afterVariableUnset', array($this->receiver, 'afterVariableUnset')); }
protected function setUp() { parent::setUp(); $this->execution = new ezcWorkflowTestExecution(); }
protected function setUp() { parent::setUp(); $this->visitor = new ezcWorkflowVisitorVisualization(); }