◆ setUp()
test_001_EmptyWorkflow::setUp |
( |
| ) |
|
◆ test_EmptyWorkflowShouldReturnEmptyPHPBrackets()
test_001_EmptyWorkflow::test_EmptyWorkflowShouldReturnEmptyPHPBrackets |
( |
| ) |
|
Definition at line 24 of file class.test_001_EmptyWorkflow.php.
25 {
26 $xml = file_get_contents(
'./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1.bpmn2');
29
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.');
32
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');
37 }
References $parse_result, $parser, and $xml.
The documentation for this class was generated from the following file: