◆ setUp()
test_001_EmptyWorkflow::setUp |
( |
| ) |
|
Definition at line 12 of file class.test_001_EmptyWorkflow.php.
13 {
14 chdir( dirname( __FILE__ ) );
15 chdir( '../../../../../' );
16
17 require_once './Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
18 }
◆ test_EmptyWorkflowShouldReturnEmptyPHPBrackets()
test_001_EmptyWorkflow::test_EmptyWorkflowShouldReturnEmptyPHPBrackets |
( |
| ) |
|
Definition at line 20 of file class.test_001_EmptyWorkflow.php.
21 {
22 $xml = file_get_contents('./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1.bpmn2');
25
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.');
28
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');
33 }
References $parse_result, and $parser.
The documentation for this class was generated from the following file: