@@ -27,23 +27,23 @@ public function testDumpWithoutMarking()
27
27
$ dump = (new StateMachineGraphvizDumper ())->dump ($ definition );
28
28
29
29
$ 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;
47
47
48
48
$ this ->assertEquals ($ expected , $ dump );
49
49
}
@@ -54,23 +54,23 @@ public function testDumpWithMarking()
54
54
$ marking = new Marking (['b ' => 1 ]);
55
55
56
56
$ 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;
74
74
75
75
$ dump = (new StateMachineGraphvizDumper ())->dump ($ definition , $ marking );
76
76
0 commit comments