◆ setUp()
test_002_StartEvent::setUp |
( |
| ) |
|
Definition at line 14 of file class.test_002_StartEvent.php.
16 chdir(dirname(__FILE__));
17 chdir(
'../../../../../');
21 require_once
'./Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
◆ test_WorkflowWithBlankStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithBlankStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 24 of file class.test_002_StartEvent.php.
References $parse_result, $parser, and $xml.
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');
◆ test_WorkflowWithMessageStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithMessageStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 47 of file class.test_002_StartEvent.php.
References $parse_result, $parser, and $xml.
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');
◆ test_WorkflowWithMultipleStartEventsShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithMultipleStartEventsShouldOutputAccordingly |
( |
| ) |
|
Definition at line 108 of file class.test_002_StartEvent.php.
References $parse_result, $parser, and $xml.
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');
◆ test_WorkflowWithSignalStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithSignalStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 68 of file class.test_002_StartEvent.php.
References $parse_result, $parser, and $xml.
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');
◆ test_WorkflowWithTimerDateStartEventShouldOutputAccordingly()
test_002_StartEvent::test_WorkflowWithTimerDateStartEventShouldOutputAccordingly |
( |
| ) |
|
Definition at line 88 of file class.test_002_StartEvent.php.
References $parse_result, $parser, and $xml.
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');
The documentation for this class was generated from the following file: