CodeExplorer provideComplexWorkflowDumpWithoutMarking example
public function testDumpWithMarking($definition,
$marking,
$expected,
$withMetadata) { $dump =
(new GraphvizDumper())->
dump($definition,
$marking,
['with-metadata' =>
$withMetadata]);
$this->
assertEquals($expected,
$dump);
} public static function provideWorkflowDefinitionWithoutMarking(): \Generator
{ yield [self::
createComplexWorkflowDefinition(), self::
provideComplexWorkflowDumpWithoutMarking(), false
];
yield [self::
createSimpleWorkflowDefinition(), self::
provideSimpleWorkflowDumpWithoutMarking(), false
];
yield [self::
createComplexWorkflowDefinition(), self::
provideComplexWorkflowDumpWithoutMarkingWithMetadata(), true
];
yield [self::
createSimpleWorkflowDefinition(), self::
provideSimpleWorkflowDumpWithoutMarkingWithMetadata(), true
];
} public static function provideWorkflowDefinitionWithMarking(): \Generator
{ yield [ self::
createComplexWorkflowDefinition(),
new Marking(['b' => 1
]),
self::
createComplexWorkflowDefinitionDumpWithMarking(),