@@ -77,7 +77,7 @@ public function testRunEmptyDefaultRoute(): void
7777 $ this ->codeigniter ->run ();
7878 $ output = ob_get_clean ();
7979
80- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
80+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
8181 }
8282
8383 public function testOutputBufferingControl (): void
@@ -98,7 +98,7 @@ public function testRunEmptyDefaultRouteReturnResponse(): void
9898 $ response = $ this ->codeigniter ->run (null , true );
9999 $ this ->assertInstanceOf (ResponseInterface::class, $ response );
100100
101- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ response ->getBody ());
101+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ response ->getBody ());
102102 }
103103
104104 public function testRunClosureRoute (): void
@@ -121,7 +121,7 @@ public function testRunClosureRoute(): void
121121 $ this ->codeigniter ->run ();
122122 $ output = ob_get_clean ();
123123
124- $ this ->assertStringContainsString ('You want to see "about" page. ' , $ output );
124+ $ this ->assertStringContainsString ('You want to see "about" page. ' , ( string ) $ output );
125125 }
126126
127127 /**
@@ -144,7 +144,7 @@ public function testRun404Override(): void
144144 $ this ->codeigniter ->run ($ routes );
145145 $ output = ob_get_clean ();
146146
147- $ this ->assertStringContainsString ("Can't find a route for 'GET: pages/about'. " , $ output );
147+ $ this ->assertStringContainsString ("Can't find a route for 'GET: pages/about'. " , ( string ) $ output );
148148 $ this ->assertSame (404 , response ()->getStatusCode ());
149149 }
150150
@@ -163,7 +163,7 @@ public function testRun404OverrideControllerReturnsResponse(): void
163163 $ response = $ this ->codeigniter ->run ($ routes , true );
164164 $ this ->assertInstanceOf (ResponseInterface::class, $ response );
165165
166- $ this ->assertStringContainsString ('Oops ' , $ response ->getBody ());
166+ $ this ->assertStringContainsString ('Oops ' , ( string ) $ response ->getBody ());
167167 $ this ->assertSame (567 , $ response ->getStatusCode ());
168168 }
169169
@@ -182,7 +182,7 @@ public function testRun404OverrideReturnResponse(): void
182182 $ response = $ this ->codeigniter ->run ($ routes , true );
183183 $ this ->assertInstanceOf (ResponseInterface::class, $ response );
184184
185- $ this ->assertStringContainsString ('Oops ' , $ response ->getBody ());
185+ $ this ->assertStringContainsString ('Oops ' , ( string ) $ response ->getBody ());
186186 }
187187
188188 public function testRun404OverrideByClosure (): void
@@ -203,7 +203,7 @@ public function testRun404OverrideByClosure(): void
203203 $ this ->codeigniter ->run ($ routes );
204204 $ output = ob_get_clean ();
205205
206- $ this ->assertStringContainsString ('404 Override by Closure. ' , $ output );
206+ $ this ->assertStringContainsString ('404 Override by Closure. ' , ( string ) $ output );
207207 $ this ->assertSame (404 , response ()->getStatusCode ());
208208 }
209209
@@ -228,7 +228,7 @@ public function testControllersCanReturnString(): void
228228 $ this ->codeigniter ->run ();
229229 $ output = ob_get_clean ();
230230
231- $ this ->assertStringContainsString ('You want to see "about" page. ' , $ output );
231+ $ this ->assertStringContainsString ('You want to see "about" page. ' , ( string ) $ output );
232232 }
233233
234234 public function testControllersCanReturnResponseObject (): void
@@ -254,7 +254,7 @@ public function testControllersCanReturnResponseObject(): void
254254 $ this ->codeigniter ->run ();
255255 $ output = ob_get_clean ();
256256
257- $ this ->assertStringContainsString ("You want to see 'about' page. " , $ output );
257+ $ this ->assertStringContainsString ("You want to see 'about' page. " , ( string ) $ output );
258258 }
259259
260260 /**
@@ -308,7 +308,7 @@ public function testRunExecuteFilterByClassName(): void
308308 $ this ->codeigniter ->run ();
309309 $ output = ob_get_clean ();
310310
311- $ this ->assertStringContainsString ('http://hellowworld.com ' , $ output );
311+ $ this ->assertStringContainsString ('http://hellowworld.com ' , ( string ) $ output );
312312
313313 $ this ->resetServices ();
314314 }
@@ -346,7 +346,7 @@ public function testRegisterSameFilterTwiceWithDifferentArgument(): void
346346 $ this ->codeigniter ->run ();
347347 $ output = ob_get_clean ();
348348
349- $ this ->assertStringContainsString ('http://hellowworld.comhttp://hellowworld.com ' , $ output );
349+ $ this ->assertStringContainsString ('http://hellowworld.comhttp://hellowworld.com ' , ( string ) $ output );
350350
351351 $ this ->resetServices ();
352352 }
@@ -374,7 +374,7 @@ public function testDisableControllerFilters(): void
374374 $ this ->codeigniter ->run ();
375375 $ output = ob_get_clean ();
376376
377- $ this ->assertStringContainsString ('' , $ output );
377+ $ this ->assertStringContainsString ('' , ( string ) $ output );
378378
379379 $ this ->resetServices ();
380380 }
@@ -402,7 +402,7 @@ public function testRoutesIsEmpty(): void
402402 $ this ->codeigniter ->run ();
403403 $ output = ob_get_clean ();
404404
405- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
405+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
406406 }
407407
408408 public function testTransfersCorrectHTTPVersion (): void
@@ -447,7 +447,7 @@ public function testIgnoringErrorSuppressedByAt(): void
447447 $ this ->codeigniter ->run ();
448448 $ output = ob_get_clean ();
449449
450- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
450+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
451451 }
452452
453453 public function testRunForceSecure (): void
@@ -684,7 +684,7 @@ public function testRunDefaultRoute(): void
684684 $ this ->codeigniter ->run ();
685685 $ output = ob_get_clean ();
686686
687- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
687+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
688688 }
689689
690690 public function testRunCLIRoute (): void
@@ -704,7 +704,7 @@ public function testRunCLIRoute(): void
704704 $ this ->codeigniter ->run ();
705705 $ output = ob_get_clean ();
706706
707- $ this ->assertStringContainsString ('Method Not Allowed ' , $ output );
707+ $ this ->assertStringContainsString ('Method Not Allowed ' , ( string ) $ output );
708708 }
709709
710710 public function testSpoofRequestMethodCanUsePUT (): void
@@ -795,7 +795,7 @@ public function testPageCacheSendSecureHeaders(): void
795795 $ this ->codeigniter ->run ();
796796 $ output = ob_get_clean ();
797797
798- $ this ->assertStringContainsString ('This is a test page ' , $ output );
798+ $ this ->assertStringContainsString ('This is a test page ' , ( string ) $ output );
799799 $ response = service ('response ' );
800800 $ headers = $ response ->headers ();
801801 $ this ->assertArrayHasKey ('X-Frame-Options ' , $ headers );
@@ -805,7 +805,7 @@ public function testPageCacheSendSecureHeaders(): void
805805 $ this ->codeigniter ->run ();
806806 $ output = ob_get_clean ();
807807
808- $ this ->assertStringContainsString ('This is a test page ' , $ output );
808+ $ this ->assertStringContainsString ('This is a test page ' , ( string ) $ output );
809809 $ response = service ('response ' );
810810 $ headers = $ response ->headers ();
811811 $ this ->assertArrayHasKey ('X-Frame-Options ' , $ headers );
0 commit comments