@@ -30,7 +30,8 @@ public function testBasicCreateDocumentation()
30
30
->withAnnotations ($ annotations )
31
31
->withFilenames (["filename " ])
32
32
->build ();
33
- DocGenerator::getInstance ()->createDocumentation (
33
+ $ docGenerator = new DocGenerator ();
34
+ $ docGenerator ->createDocumentation (
34
35
[$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
35
36
DOCS_OUTPUT_DIR ,
36
37
true
@@ -61,7 +62,8 @@ public function testCreateDocumentationWithOverwrite()
61
62
->withAnnotations ($ annotations )
62
63
->withFilenames (["filename " ])
63
64
->build ();
64
- DocGenerator::getInstance ()->createDocumentation (
65
+ $ docGenerator = new DocGenerator ();
66
+ $ docGenerator ->createDocumentation (
65
67
[$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
66
68
DOCS_OUTPUT_DIR ,
67
69
true
@@ -75,7 +77,8 @@ public function testCreateDocumentationWithOverwrite()
75
77
->withAnnotations ($ annotations )
76
78
->withFilenames (["filename " ])
77
79
->build ();
78
- DocGenerator::getInstance ()->createDocumentation (
80
+ $ docGenerator = new DocGenerator ();
81
+ $ docGenerator ->createDocumentation (
79
82
[$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
80
83
DOCS_OUTPUT_DIR ,
81
84
true
@@ -106,7 +109,8 @@ public function testCreateDocumentationNotCleanException()
106
109
->withAnnotations ($ annotations )
107
110
->withFilenames (["filename " ])
108
111
->build ();
109
- DocGenerator::getInstance ()->createDocumentation (
112
+ $ docGenerator = new DocGenerator ();
113
+ $ docGenerator ->createDocumentation (
110
114
[$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
111
115
DOCS_OUTPUT_DIR ,
112
116
true
@@ -117,7 +121,8 @@ public function testCreateDocumentationNotCleanException()
117
121
$ this ->expectException (TestFrameworkException::class);
118
122
$ this ->expectExceptionMessage ("$ docFile already exists, please add --clean if you want to overwrite it. " );
119
123
120
- DocGenerator::getInstance ()->createDocumentation (
124
+ $ docGenerator = new DocGenerator ();
125
+ $ docGenerator ->createDocumentation (
121
126
[$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
122
127
DOCS_OUTPUT_DIR ,
123
128
false
0 commit comments