Ejemplo n.º 1
0
 protected function execute(ymcPipeNode $node)
 {
     $inNode = $this->inNode;
     $inNode->addOutNode($node);
     $execution = new ymcPipeExecutionNonSuspendable();
     $execution->pipe = $inNode->pipe;
     $inNode->pipe->accept(new ymcPipeSetIdVisitor());
     $execution->start();
 }
 public function testExecute()
 {
     $pipe = new ymcPipe();
     $node = $pipe->createNode('ymcPipeGetExecutionVariableNode');
     $node->config->variable = 'test';
     $execution = new ymcPipeExecutionNonSuspendable();
     $execution->pipe = $pipe;
     $execution->variables['test'] = 'vvv';
     $pipe->accept(new ymcPipeSetIdVisitor());
     $execution->start();
     $this->assertEquals('vvv', $node->getOutput());
 }