ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
test_001_EmptyWorkflow Class Reference
+ Inheritance diagram for test_001_EmptyWorkflow:
+ Collaboration diagram for test_001_EmptyWorkflow:

Public Member Functions

 setUp ()
 
 test_EmptyWorkflowShouldReturnEmptyPHPBrackets ()
 

Detailed Description

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

/

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

Member Function Documentation

◆ 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.

References $parse_result, and $parser.

21  {
22  $xml = file_get_contents('./Services/WorkflowEngine/test/parser/001_EmptyWorkflow/EmptyWorkflow_1.bpmn2');
23  $parser = new ilBPMN2Parser();
24  $parse_result = $parser->parseBPMN2XML($xml);
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  }
$parse_result
Definition: BPMN2Parser.php:26
$parser
Definition: BPMN2Parser.php:24
Class ilBPMN2Parser.

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