public function testCreateFromString_02() { $n = new SWNode('node1', 'w1'); $this->assertEquals($n->getId(), 'node1'); $this->assertEquals($n->getLabel(), $n->getId()); $this->assertEquals($n->getWorkflowId(), 'w1'); }
public function testCreateFromString_06() { $n = new SWNode('node1_aaa', 'w1'); $this->assertEquals($n->getId(), 'node1_aaa'); $this->assertEquals($n->getWorkflowId(), 'w1'); $n = new SWNode('workflow_test/node1_aaa'); $this->assertEquals($n->getId(), 'node1_aaa'); $this->assertEquals($n->getWorkflowId(), 'workflow_test'); }