상속: extends ezcTestCase
예제 #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->execution = new ezcWorkflowTestExecution();
     $this->plugin = $this->getMock('ezcWorkflowExecutionPlugin');
     $this->execution->addPlugin($this->plugin);
 }
예제 #2
0
 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);
 }
예제 #5
0
 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());
     }
 }
예제 #6
0
파일: plugin_test.php 프로젝트: bmdevel/ezc
 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'));
 }
예제 #7
0
 protected function setUp()
 {
     parent::setUp();
     $this->execution = new ezcWorkflowTestExecution();
 }
예제 #8
0
 protected function setUp()
 {
     parent::setUp();
     $this->visitor = new ezcWorkflowVisitorVisualization();
 }