@@ -30,7 +30,8 @@ public function testBasicCreateDocumentation()
3030 ->withAnnotations ($ annotations )
3131 ->withFilenames (["filename " ])
3232 ->build ();
33- DocGenerator::getInstance ()->createDocumentation (
33+ $ docGenerator = new DocGenerator ();
34+ $ docGenerator ->createDocumentation (
3435 [$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
3536 DOCS_OUTPUT_DIR ,
3637 true
@@ -61,7 +62,8 @@ public function testCreateDocumentationWithOverwrite()
6162 ->withAnnotations ($ annotations )
6263 ->withFilenames (["filename " ])
6364 ->build ();
64- DocGenerator::getInstance ()->createDocumentation (
65+ $ docGenerator = new DocGenerator ();
66+ $ docGenerator ->createDocumentation (
6567 [$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
6668 DOCS_OUTPUT_DIR ,
6769 true
@@ -75,7 +77,8 @@ public function testCreateDocumentationWithOverwrite()
7577 ->withAnnotations ($ annotations )
7678 ->withFilenames (["filename " ])
7779 ->build ();
78- DocGenerator::getInstance ()->createDocumentation (
80+ $ docGenerator = new DocGenerator ();
81+ $ docGenerator ->createDocumentation (
7982 [$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
8083 DOCS_OUTPUT_DIR ,
8184 true
@@ -106,7 +109,8 @@ public function testCreateDocumentationNotCleanException()
106109 ->withAnnotations ($ annotations )
107110 ->withFilenames (["filename " ])
108111 ->build ();
109- DocGenerator::getInstance ()->createDocumentation (
112+ $ docGenerator = new DocGenerator ();
113+ $ docGenerator ->createDocumentation (
110114 [$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
111115 DOCS_OUTPUT_DIR ,
112116 true
@@ -117,7 +121,8 @@ public function testCreateDocumentationNotCleanException()
117121 $ this ->expectException (TestFrameworkException::class);
118122 $ this ->expectExceptionMessage ("$ docFile already exists, please add --clean if you want to overwrite it. " );
119123
120- DocGenerator::getInstance ()->createDocumentation (
124+ $ docGenerator = new DocGenerator ();
125+ $ docGenerator ->createDocumentation (
121126 [$ actionGroupUnderTest ->getName () => $ actionGroupUnderTest ],
122127 DOCS_OUTPUT_DIR ,
123128 false
0 commit comments