Skip to content

Commit 007fb4b

Browse files
committed
1 parent cefb2f2 commit 007fb4b

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

Tests/Dumper/StateMachineGraphvizDumperTest.php

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ public function testDumpWithoutMarking()
2727
$dump = (new StateMachineGraphvizDumper())->dump($definition);
2828

2929
$expected = <<<'EOGRAPH'
30-
digraph workflow {
31-
ratio="compress" rankdir="LR"
32-
node [fontsize="9" fontname="Arial" color="#333333" fillcolor="lightblue" fixedsize="false" width="1"];
33-
edge [fontsize="9" fontname="Arial" color="#333333" arrowhead="normal" arrowsize="0.5"];
34-
35-
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 [label="a", shape=circle style="filled"];
36-
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="b", shape=circle];
37-
place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="c", shape=circle];
38-
place_3c363836cf4e16666669a25da280a1865c2d2874 [label="d", shape=circle];
39-
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="t1" style="solid"];
40-
place_3c363836cf4e16666669a25da280a1865c2d2874 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="My custom transition
41-
label 3" style="solid" fontcolor="Grey" color="Red"];
42-
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="t2" style="solid" color="Blue"];
43-
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_3c363836cf4e16666669a25da280a1865c2d2874 [label="t3" style="solid"];
44-
}
45-
46-
EOGRAPH;
30+
digraph workflow {
31+
ratio="compress" rankdir="LR"
32+
node [fontsize="9" fontname="Arial" color="#333333" fillcolor="lightblue" fixedsize="false" width="1"];
33+
edge [fontsize="9" fontname="Arial" color="#333333" arrowhead="normal" arrowsize="0.5"];
34+
35+
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 [label="a", shape=circle style="filled"];
36+
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="b", shape=circle];
37+
place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="c", shape=circle];
38+
place_3c363836cf4e16666669a25da280a1865c2d2874 [label="d", shape=circle];
39+
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="t1" style="solid"];
40+
place_3c363836cf4e16666669a25da280a1865c2d2874 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="My custom transition
41+
label 3" style="solid" fontcolor="Grey" color="Red"];
42+
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="t2" style="solid" color="Blue"];
43+
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_3c363836cf4e16666669a25da280a1865c2d2874 [label="t3" style="solid"];
44+
}
45+
46+
EOGRAPH;
4747

4848
$this->assertEquals($expected, $dump);
4949
}
@@ -54,23 +54,23 @@ public function testDumpWithMarking()
5454
$marking = new Marking(['b' => 1]);
5555

5656
$expected = <<<'EOGRAPH'
57-
digraph workflow {
58-
ratio="compress" rankdir="LR"
59-
node [fontsize="9" fontname="Arial" color="#333333" fillcolor="lightblue" fixedsize="false" width="1"];
60-
edge [fontsize="9" fontname="Arial" color="#333333" arrowhead="normal" arrowsize="0.5"];
61-
62-
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 [label="a", shape=circle style="filled"];
63-
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="b", shape=circle color="#FF0000" shape="doublecircle"];
64-
place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="c", shape=circle];
65-
place_3c363836cf4e16666669a25da280a1865c2d2874 [label="d", shape=circle];
66-
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="t1" style="solid"];
67-
place_3c363836cf4e16666669a25da280a1865c2d2874 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="My custom transition
68-
label 3" style="solid" fontcolor="Grey" color="Red"];
69-
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="t2" style="solid" color="Blue"];
70-
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_3c363836cf4e16666669a25da280a1865c2d2874 [label="t3" style="solid"];
71-
}
72-
73-
EOGRAPH;
57+
digraph workflow {
58+
ratio="compress" rankdir="LR"
59+
node [fontsize="9" fontname="Arial" color="#333333" fillcolor="lightblue" fixedsize="false" width="1"];
60+
edge [fontsize="9" fontname="Arial" color="#333333" arrowhead="normal" arrowsize="0.5"];
61+
62+
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 [label="a", shape=circle style="filled"];
63+
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="b", shape=circle color="#FF0000" shape="doublecircle"];
64+
place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="c", shape=circle];
65+
place_3c363836cf4e16666669a25da280a1865c2d2874 [label="d", shape=circle];
66+
place_86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="t1" style="solid"];
67+
place_3c363836cf4e16666669a25da280a1865c2d2874 -> place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 [label="My custom transition
68+
label 3" style="solid" fontcolor="Grey" color="Red"];
69+
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 [label="t2" style="solid" color="Blue"];
70+
place_e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 -> place_3c363836cf4e16666669a25da280a1865c2d2874 [label="t3" style="solid"];
71+
}
72+
73+
EOGRAPH;
7474

7575
$dump = (new StateMachineGraphvizDumper())->dump($definition, $marking);
7676

Tests/WorkflowBuilderTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ private static function createComplexStateMachineDefinition(): Definition
129129
$transitionsMetadata = new \SplObjectStorage();
130130
// PHP 7.2 doesn't allow this heredoc syntax in an array, use a dedicated variable instead
131131
$label = <<<'EOTXT'
132-
My custom transition
133-
label 3
134-
EOTXT;
132+
My custom transition
133+
label 3
134+
EOTXT;
135135
$transitionsMetadata[$transitionWithMetadataDumpStyle] = [
136136
'label' => $label,
137137
'color' => 'Grey',

0 commit comments

Comments
 (0)