◆ setUp()
test_001_EmptyWorkflow::setUp |
( |
| ) |
|
Definition at line 14 of file class.test_001_EmptyWorkflow.php.
16 chdir(dirname(__FILE__));
17 chdir(
'../../../../../');
21 require_once
'./Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
◆ test_EmptyWorkflowShouldReturnEmptyPHPBrackets()
test_001_EmptyWorkflow::test_EmptyWorkflowShouldReturnEmptyPHPBrackets |
( |
| ) |
|
Definition at line 24 of file class.test_001_EmptyWorkflow.php.
References $parse_result, $parser, and $xml.
26 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1.bpmn2');
30 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_goldsample.php');
31 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
33 file_put_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_output.php',
$parse_result);
34 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_output.php');
35 $this->assertTrue(substr($return, 0, 25) ==
'No syntax errors detected',
'Lint of output code failed.');
36 unlink(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_output.php');
The documentation for this class was generated from the following file: