4 require_once
'Services/WorkflowEngine/test/ilWorkflowEngineBaseTest.php';
16 chdir(dirname(__FILE__));
17 chdir(
'../../../../../');
21 require_once
'./Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
26 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank.bpmn2');
30 file_put_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_output.php',
$parse_result);
31 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_output.php');
32 $this->assertTrue(substr($return, 0, 25) ==
'No syntax errors detected',
'Lint of output code failed.');
35 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_goldsample.php');
36 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
38 require_once
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_output.php';
40 $this->assertFalse($process->isActive());
44 unlink(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_output.php');
49 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message.bpmn2');
53 file_put_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_output.php',
$parse_result);
54 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_output.php');
55 $this->assertTrue(substr($return, 0, 25) ==
'No syntax errors detected',
'Lint of output code failed.');
58 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_goldsample.php');
59 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
61 require_once
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_output.php';
63 $this->assertFalse($process->isActive());
65 unlink(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_output.php');
70 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal.bpmn2');
74 file_put_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_output.php',
$parse_result);
75 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_output.php');
76 $this->assertTrue(substr($return, 0, 25) ==
'No syntax errors detected',
'Lint of output code failed.');
78 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_goldsample.php');
79 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
81 require_once
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_output.php';
83 $this->assertFalse($process->isActive());
85 unlink(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_output.php');
90 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date.bpmn2');
94 file_put_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_output.php',
$parse_result);
95 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_output.php');
96 $this->assertTrue(substr($return, 0, 25) ==
'No syntax errors detected',
'Lint of output code failed.');
98 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_goldsample.php');
99 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
101 require_once
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_output.php';
103 $this->assertFalse($process->isActive());
105 unlink(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_output.php');
110 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart.bpmn2');
114 file_put_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_output.php',
$parse_result);
115 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_output.php');
116 $this->assertTrue(substr($return, 0, 25) ==
'No syntax errors detected',
'Lint of output code failed.');
118 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_goldsample.php');
119 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
121 require_once
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_output.php';
123 $this->assertFalse($process->isActive());
125 unlink(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_output.php');
Class ilWorkflowEngineBaseTest.
test_WorkflowWithBlankStartEventShouldOutputAccordingly()
test_WorkflowWithSignalStartEventShouldOutputAccordingly()
test_WorkflowWithTimerDateStartEventShouldOutputAccordingly()
test_WorkflowWithMultipleStartEventsShouldOutputAccordingly()
test_WorkflowWithMessageStartEventShouldOutputAccordingly()