14 chdir( dirname( __FILE__ ) );
15 chdir(
'../../../../../' );
17 require_once
'./Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
22 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1.bpmn2');
26 $goldsample = file_get_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_goldsample.php');
27 $this->assertEquals($goldsample,
$parse_result,
'Output does not match goldsample.');
29 file_put_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_output.php',
$parse_result);
30 $return = exec(
'php -l ./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_output.php');
31 $this->assertTrue(substr($return,0,25) ==
'No syntax errors detected',
'Lint of output code failed.');
32 unlink(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1_output.php');
test_EmptyWorkflowShouldReturnEmptyPHPBrackets()