ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ( )

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

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.

References $parse_result, $parser, and $xml.

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  }
$parse_result
Definition: BPMN2Parser.php:25
$xml
Definition: metadata.php:240
$parser
Definition: BPMN2Parser.php:23
Class ilBPMN2Parser.

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