$dumper =
new PlantUmlDumper(PlantUmlDumper::STATEMACHINE_TRANSITION
);
$dump =
$dumper->
dump($definition,
$marking,
['title' =>
$title]);
// handle windows, and avoid to create more fixtures
$dump =
str_replace(\PHP_EOL, "\n",
$dump.\PHP_EOL
);
$file =
$this->
getFixturePath($expectedFileName, PlantUmlDumper::STATEMACHINE_TRANSITION
);
$this->
assertStringEqualsFile($file,
$dump);
} public static function provideStateMachineDefinitionWithoutMarking(): \Generator
{ yield [static::
createComplexStateMachineDefinition(), null, 'complex-state-machine-nomarking', 'SimpleDiagram'
];
$marking =
new Marking(['c' => 1, 'e' => 1
]);
yield [static::
createComplexStateMachineDefinition(),
$marking, 'complex-state-machine-marking', 'SimpleDiagram'
];
} public function testDumpWorkflowWithSpacesInTheStateNamesAndDescription() { $dumper =
new PlantUmlDumper(PlantUmlDumper::WORKFLOW_TRANSITION
);
// The graph looks like:
//
// +---------+ t 1 +----------+ |