◆ setUp()
test_002_StartEvent::setUp |
( |
| ) |
|
Reimplemented from ilWorkflowEngineBaseTest.
Definition at line 14 of file class.test_002_StartEvent.php.
15 {
16 chdir(dirname(__FILE__));
17 chdir('../../../../../');
18
19 parent::setUp();
20
21 require_once './Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
22 }
◆ test_WorkflowWithBlankStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithBlankStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 24 of file class.test_002_StartEvent.php.
25 {
26 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank.bpmn2');
29
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.');
33
34
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.');
37
38 require_once './Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_output.php';
40 $this->assertFalse($process->isActive());
41
42
43
44 unlink('./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Blank_output.php');
45 }
References $parse_result, $parser, and $xml.
◆ test_WorkflowWithMessageStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithMessageStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 47 of file class.test_002_StartEvent.php.
48 {
49 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message.bpmn2');
52
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.');
56
57
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.');
60
61 require_once './Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_output.php';
63 $this->assertFalse($process->isActive());
64
65 unlink('./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Message_output.php');
66 }
References $parse_result, $parser, and $xml.
◆ test_WorkflowWithMultipleStartEventsShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithMultipleStartEventsShouldOutputAccordingly |
( |
| ) |
|
Definition at line 108 of file class.test_002_StartEvent.php.
109 {
110 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart.bpmn2');
113
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.');
117
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.');
120
121 require_once './Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_output.php';
123 $this->assertFalse($process->isActive());
124
125 unlink('./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_MultiStart_output.php');
126 }
References $parse_result, $parser, and $xml.
◆ test_WorkflowWithSignalStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithSignalStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 68 of file class.test_002_StartEvent.php.
69 {
70 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal.bpmn2');
73
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.');
77
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.');
80
81 require_once './Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_output.php';
83 $this->assertFalse($process->isActive());
84
85 unlink('./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Signal_output.php');
86 }
References $parse_result, $parser, and $xml.
◆ test_WorkflowWithTimerDateStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithTimerDateStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 88 of file class.test_002_StartEvent.php.
89 {
90 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date.bpmn2');
93
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.');
97
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.');
100
101 require_once './Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_output.php';
103 $this->assertFalse($process->isActive());
104
105 unlink('./Services/WorkflowEngine/test/parser/002_StartEvent/StartEvent_Timer_Date_output.php');
106 }
References $parse_result, $parser, and $xml.
The documentation for this class was generated from the following file: