コード例 #1
0
ファイル: regexp_extract.php プロジェクト: jou/ymc-components
 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();
 }
コード例 #2
0
 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());
 }