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/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');
test_EmptyWorkflowShouldReturnEmptyPHPBrackets()
Class ilWorkflowEngineBaseTest.