@@ -25,7 +25,7 @@ class PlantUmlDumperTest extends TestCase
2525 public function testDumpWorkflowWithoutMarking ($ definition , $ marking , $ expectedFileName , $ title )
2626 {
2727 $ dumper = new PlantUmlDumper (PlantUmlDumper::WORKFLOW_TRANSITION );
28- $ dump = $ dumper ->dump ($ definition , $ marking , array ( 'title ' => $ title) );
28+ $ dump = $ dumper ->dump ($ definition , $ marking , [ 'title ' => $ title] );
2929 // handle windows, and avoid to create more fixtures
3030 $ dump = str_replace (PHP_EOL , "\n" , $ dump .PHP_EOL );
3131 $ file = $ this ->getFixturePath ($ expectedFileName , PlantUmlDumper::WORKFLOW_TRANSITION );
@@ -34,12 +34,12 @@ public function testDumpWorkflowWithoutMarking($definition, $marking, $expectedF
3434
3535 public function provideWorkflowDefinitionWithoutMarking ()
3636 {
37- yield array ( $ this ->createSimpleWorkflowDefinition (), null , 'simple-workflow-nomarking ' , 'SimpleDiagram ' ) ;
38- yield array ( $ this ->createComplexWorkflowDefinition (), null , 'complex-workflow-nomarking ' , 'ComplexDiagram ' ) ;
39- $ marking = new Marking (array ( 'b ' => 1 ) );
40- yield array ( $ this ->createSimpleWorkflowDefinition (), $ marking , 'simple-workflow-marking ' , 'SimpleDiagram ' ) ;
41- $ marking = new Marking (array ( 'c ' => 1 , 'e ' => 1 ) );
42- yield array ( $ this ->createComplexWorkflowDefinition (), $ marking , 'complex-workflow-marking ' , 'ComplexDiagram ' ) ;
37+ yield [ $ this ->createSimpleWorkflowDefinition (), null , 'simple-workflow-nomarking ' , 'SimpleDiagram ' ] ;
38+ yield [ $ this ->createComplexWorkflowDefinition (), null , 'complex-workflow-nomarking ' , 'ComplexDiagram ' ] ;
39+ $ marking = new Marking ([ 'b ' => 1 ] );
40+ yield [ $ this ->createSimpleWorkflowDefinition (), $ marking , 'simple-workflow-marking ' , 'SimpleDiagram ' ] ;
41+ $ marking = new Marking ([ 'c ' => 1 , 'e ' => 1 ] );
42+ yield [ $ this ->createComplexWorkflowDefinition (), $ marking , 'complex-workflow-marking ' , 'ComplexDiagram ' ] ;
4343 }
4444
4545 /**
@@ -48,7 +48,7 @@ public function provideWorkflowDefinitionWithoutMarking()
4848 public function testDumpStateMachineWithoutMarking ($ definition , $ marking , $ expectedFileName , $ title )
4949 {
5050 $ dumper = new PlantUmlDumper (PlantUmlDumper::STATEMACHINE_TRANSITION );
51- $ dump = $ dumper ->dump ($ definition , $ marking , array ( 'title ' => $ title) );
51+ $ dump = $ dumper ->dump ($ definition , $ marking , [ 'title ' => $ title] );
5252 // handle windows, and avoid to create more fixtures
5353 $ dump = str_replace (PHP_EOL , "\n" , $ dump .PHP_EOL );
5454 $ file = $ this ->getFixturePath ($ expectedFileName , PlantUmlDumper::STATEMACHINE_TRANSITION );
@@ -57,9 +57,9 @@ public function testDumpStateMachineWithoutMarking($definition, $marking, $expec
5757
5858 public function provideStateMachineDefinitionWithoutMarking ()
5959 {
60- yield array ( $ this ->createComplexStateMachineDefinition (), null , 'complex-state-machine-nomarking ' , 'SimpleDiagram ' ) ;
61- $ marking = new Marking (array ( 'c ' => 1 , 'e ' => 1 ) );
62- yield array ( $ this ->createComplexStateMachineDefinition (), $ marking , 'complex-state-machine-marking ' , 'SimpleDiagram ' ) ;
60+ yield [ $ this ->createComplexStateMachineDefinition (), null , 'complex-state-machine-nomarking ' , 'SimpleDiagram ' ] ;
61+ $ marking = new Marking ([ 'c ' => 1 , 'e ' => 1 ] );
62+ yield [ $ this ->createComplexStateMachineDefinition (), $ marking , 'complex-state-machine-marking ' , 'SimpleDiagram ' ] ;
6363 }
6464
6565 private function getFixturePath ($ name , $ transitionType )
0 commit comments