@@ -74,6 +74,7 @@ public function testConstructWithContainerAssignsDefaultHandlersAndContainerForR
7474 $ container ->expects ($ this ->once ())->method ('getAccessLogHandler ' )->willReturn ($ accessLogHandler );
7575 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
7676
77+ assert ($ container instanceof Container);
7778 $ app = new App ($ container );
7879
7980 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -109,6 +110,7 @@ public function testConstructWithContainerAndMiddlewareClassNameAssignsCallableF
109110 $ container = $ this ->createMock (Container::class);
110111 $ container ->expects ($ this ->once ())->method ('callable ' )->with ('stdClass ' )->willReturn ($ middleware );
111112
113+ assert ($ container instanceof Container);
112114 $ app = new App ($ container , \stdClass::class);
113115
114116 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -224,6 +226,7 @@ public function testConstructWithContainerAndErrorHandlerClassAssignsErrorHandle
224226 $ container = $ this ->createMock (Container::class);
225227 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
226228
229+ assert ($ container instanceof Container);
227230 $ app = new App ($ container , ErrorHandler::class);
228231
229232 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -257,6 +260,8 @@ public function testConstructWithMultipleContainersAndErrorHandlerClassAssignsEr
257260 $ container = $ this ->createMock (Container::class);
258261 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
259262
263+ assert ($ unused instanceof Container);
264+ assert ($ container instanceof Container);
260265 $ app = new App ($ unused , $ container , ErrorHandler::class, $ unused );
261266
262267 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -291,6 +296,8 @@ public function testConstructWithMultipleContainersAndMiddlewareAssignsErrorHand
291296 $ container = $ this ->createMock (Container::class);
292297 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
293298
299+ assert ($ unused instanceof Container);
300+ assert ($ container instanceof Container);
294301 $ app = new App ($ unused , $ container , $ middleware , $ unused );
295302
296303 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -361,6 +368,9 @@ public function testConstructWithMultipleContainersAndMiddlewareAndErrorHandlerC
361368 $ container2 = $ this ->createMock (Container::class);
362369 $ container2 ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler2 );
363370
371+ assert ($ unused instanceof Container);
372+ assert ($ container1 instanceof Container);
373+ assert ($ container2 instanceof Container);
364374 $ app = new App ($ unused , $ container1 , $ middleware , $ container2 , ErrorHandler::class, $ unused );
365375
366376 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -448,6 +458,7 @@ public function testConstructWithContainerAndAccessLogHandlerClassAndErrorHandle
448458 $ container ->expects ($ this ->once ())->method ('getAccessLogHandler ' )->willReturn ($ accessLogHandler );
449459 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
450460
461+ assert ($ container instanceof Container);
451462 $ app = new App ($ container , AccessLogHandler::class, ErrorHandler::class);
452463
453464 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -515,6 +526,8 @@ public function testConstructWithMultipleContainersAndAccessLogHandlerClassAndEr
515526 $ container ->expects ($ this ->once ())->method ('getAccessLogHandler ' )->willReturn ($ accessLogHandler );
516527 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
517528
529+ assert ($ unused instanceof Container);
530+ assert ($ container instanceof Container);
518531 $ app = new App ($ unused , $ container , AccessLogHandler::class, ErrorHandler::class, $ unused );
519532
520533 $ ref = new ReflectionProperty ($ app , 'handler ' );
@@ -554,6 +567,8 @@ public function testConstructWithMultipleContainersAndMiddlewareAssignsDefaultHa
554567 $ container ->expects ($ this ->once ())->method ('getAccessLogHandler ' )->willReturn ($ accessLogHandler );
555568 $ container ->expects ($ this ->once ())->method ('getErrorHandler ' )->willReturn ($ errorHandler );
556569
570+ assert ($ unused instanceof Container);
571+ assert ($ container instanceof Container);
557572 $ app = new App ($ unused , $ container , $ middleware , $ unused );
558573
559574 $ ref = new ReflectionProperty ($ app , 'handler ' );
0 commit comments