@@ -221,16 +221,15 @@ public function whenINormalizeServerDoc()
221221 $ shapeNormalizer = new ShapeNormalizer ();
222222 $ schemaTypeNormalizer = new SchemaTypeNormalizer ();
223223 $ definitionRefResolver = new DefinitionRefResolver ();
224+ $ typeDocNormalizer = new TypeDocNormalizer (
225+ $ schemaTypeNormalizer
226+ );
224227 $ normalizer = new DocNormalizer (
225228 new ExternalSchemaListDocNormalizer (
226229 $ definitionRefResolver ,
227- new TypeDocNormalizer (
228- $ schemaTypeNormalizer
229- ),
230+ $ typeDocNormalizer ,
230231 new ErrorDocNormalizer (
231- new TypeDocNormalizer (
232- $ schemaTypeNormalizer
233- ),
232+ $ typeDocNormalizer ,
234233 $ shapeNormalizer
235234 ),
236235 $ shapeNormalizer
@@ -256,7 +255,6 @@ public function whenINormalizeServerDoc()
256255 */
257256 public function thenIShouldHaveFollowingNormalizedDoc (PyStringNode $ data )
258257 {
259- print_r (json_encode ($ this ->lastNormalizedOutput )."\n" );
260258 Assert::assertSame (
261259 $ this ->jsonDecode ($ data ->getRaw ()),
262260 $ this ->lastNormalizedOutput
@@ -281,8 +279,6 @@ public function thenNormalizedDefinitionNamedShouldBeTheFollowing($definitionNam
281279 {
282280 $ this ->thenIShouldHaveDefinitionNamed ($ definitionName );
283281
284- print_r (json_encode ($ this ->lastNormalizedOutput ));
285-
286282 Assert::assertSame (
287283 $ this ->jsonDecode ($ data ->getRaw ()),
288284 $ this ->lastNormalizedOutput [self ::DEFINITIONS_KEY ][$ definitionName ]
@@ -341,7 +337,6 @@ public function thenIShouldHaveTheFollowingTypeDoc(PyStringNode $data, $isRequir
341337 $ this ->thenIShouldHaveDefinitionNamed (self ::DUMMY_ERROR_KEY_FOR_TYPEDOC );
342338 $ dummyError = $ this ->lastNormalizedOutput [self ::DEFINITIONS_KEY ][self ::DUMMY_ERROR_KEY_FOR_TYPEDOC ];
343339 $ dummyErrorShape = $ dummyError ['allOf ' ][1 ];
344- var_dump ($ dummyErrorShape );
345340
346341 if (true === $ isRequired ) {
347342 Assert::assertContains ('data ' , $ dummyErrorShape ['required ' ]);
@@ -405,8 +400,6 @@ public function thenIShouldHaveAPathNamedLikeFollowing($httpMethod, $pathName, P
405400 $ operation = $ this ->extractPath ($ httpMethod , $ pathName );
406401 $ decodedExpected = $ this ->jsonDecode ($ data ->getRaw ());
407402
408- print_r (json_encode ($ operation )."\n" );
409-
410403 foreach ($ decodedExpected as $ expectedKey => $ expectedContent ) {
411404 Assert::assertArrayHasKey ($ expectedKey , $ operation );
412405 Assert::assertSame ($ expectedContent , $ operation [$ expectedKey ]);
@@ -424,8 +417,6 @@ public function thenPathNamedShouldHaveTheFollowingParameters($httpMethod, $path
424417 $ operationParameters = $ operation ['parameters ' ][0 ]['schema ' ]['allOf ' ];
425418 $ decodedExpected = $ this ->jsonDecode ($ data ->getRaw ());
426419
427- print_r (json_encode ($ operation )."\n" );
428-
429420 Assert::assertContains ($ decodedExpected , $ operationParameters );
430421 }
431422
@@ -443,8 +434,6 @@ public function thenPathNamedShouldHaveTheFollowingResponse($httpMethod, $pathNa
443434 $ operationResponseSchemaList = $ operation ['responses ' ]['200 ' ]['schema ' ]['allOf ' ];
444435 $ decodedExpected = $ this ->jsonDecode ($ data ->getRaw ());
445436
446- print_r (json_encode ($ this ->lastNormalizedOutput ));
447-
448437 Assert::assertContains ($ decodedExpected , $ operationResponseSchemaList );
449438 }
450439
0 commit comments