ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
test_001_EmptyWorkflow Class Reference
+ Inheritance diagram for test_001_EmptyWorkflow:
+ Collaboration diagram for test_001_EmptyWorkflow:

Public Member Functions

 setUp ()
 
 test_EmptyWorkflowShouldReturnEmptyPHPBrackets ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilWorkflowEngineBaseTest
 setGlobalVariable ($name, $value)
 
 setUp ()
 

Detailed Description

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

/

Definition at line 12 of file class.test_001_EmptyWorkflow.php.

Member Function Documentation

◆ setUp()

test_001_EmptyWorkflow::setUp ( )

Reimplemented from ilWorkflowEngineBaseTest.

Definition at line 14 of file class.test_001_EmptyWorkflow.php.

14 : void
15 {
16 chdir(dirname(__FILE__));
17 chdir('../../../../../');
18
19 parent::setUp();
20
21 require_once './Services/WorkflowEngine/classes/parser/class.ilBPMN2Parser.php';
22 }

◆ 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');
27 $parser = new ilBPMN2Parser();
28 $parse_result = $parser->parseBPMN2XML($xml);
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 }
$parser
Definition: BPMN2Parser.php:23
$parse_result
Definition: BPMN2Parser.php:25
$xml
Definition: metadata.php:332

References $parse_result, $parser, and $xml.


The documentation for this class was generated from the following file: