@@ -77,7 +77,7 @@ public function testRunEmptyDefaultRoute(): void
77
77
$ this ->codeigniter ->run ();
78
78
$ output = ob_get_clean ();
79
79
80
- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
80
+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
81
81
}
82
82
83
83
public function testOutputBufferingControl (): void
@@ -98,7 +98,7 @@ public function testRunEmptyDefaultRouteReturnResponse(): void
98
98
$ response = $ this ->codeigniter ->run (null , true );
99
99
$ this ->assertInstanceOf (ResponseInterface::class, $ response );
100
100
101
- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ response ->getBody ());
101
+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ response ->getBody ());
102
102
}
103
103
104
104
public function testRunClosureRoute (): void
@@ -121,7 +121,7 @@ public function testRunClosureRoute(): void
121
121
$ this ->codeigniter ->run ();
122
122
$ output = ob_get_clean ();
123
123
124
- $ this ->assertStringContainsString ('You want to see "about" page. ' , $ output );
124
+ $ this ->assertStringContainsString ('You want to see "about" page. ' , ( string ) $ output );
125
125
}
126
126
127
127
/**
@@ -144,7 +144,7 @@ public function testRun404Override(): void
144
144
$ this ->codeigniter ->run ($ routes );
145
145
$ output = ob_get_clean ();
146
146
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 );
148
148
$ this ->assertSame (404 , response ()->getStatusCode ());
149
149
}
150
150
@@ -163,7 +163,7 @@ public function testRun404OverrideControllerReturnsResponse(): void
163
163
$ response = $ this ->codeigniter ->run ($ routes , true );
164
164
$ this ->assertInstanceOf (ResponseInterface::class, $ response );
165
165
166
- $ this ->assertStringContainsString ('Oops ' , $ response ->getBody ());
166
+ $ this ->assertStringContainsString ('Oops ' , ( string ) $ response ->getBody ());
167
167
$ this ->assertSame (567 , $ response ->getStatusCode ());
168
168
}
169
169
@@ -182,7 +182,7 @@ public function testRun404OverrideReturnResponse(): void
182
182
$ response = $ this ->codeigniter ->run ($ routes , true );
183
183
$ this ->assertInstanceOf (ResponseInterface::class, $ response );
184
184
185
- $ this ->assertStringContainsString ('Oops ' , $ response ->getBody ());
185
+ $ this ->assertStringContainsString ('Oops ' , ( string ) $ response ->getBody ());
186
186
}
187
187
188
188
public function testRun404OverrideByClosure (): void
@@ -203,7 +203,7 @@ public function testRun404OverrideByClosure(): void
203
203
$ this ->codeigniter ->run ($ routes );
204
204
$ output = ob_get_clean ();
205
205
206
- $ this ->assertStringContainsString ('404 Override by Closure. ' , $ output );
206
+ $ this ->assertStringContainsString ('404 Override by Closure. ' , ( string ) $ output );
207
207
$ this ->assertSame (404 , response ()->getStatusCode ());
208
208
}
209
209
@@ -228,7 +228,7 @@ public function testControllersCanReturnString(): void
228
228
$ this ->codeigniter ->run ();
229
229
$ output = ob_get_clean ();
230
230
231
- $ this ->assertStringContainsString ('You want to see "about" page. ' , $ output );
231
+ $ this ->assertStringContainsString ('You want to see "about" page. ' , ( string ) $ output );
232
232
}
233
233
234
234
public function testControllersCanReturnResponseObject (): void
@@ -254,7 +254,7 @@ public function testControllersCanReturnResponseObject(): void
254
254
$ this ->codeigniter ->run ();
255
255
$ output = ob_get_clean ();
256
256
257
- $ this ->assertStringContainsString ("You want to see 'about' page. " , $ output );
257
+ $ this ->assertStringContainsString ("You want to see 'about' page. " , ( string ) $ output );
258
258
}
259
259
260
260
/**
@@ -308,7 +308,7 @@ public function testRunExecuteFilterByClassName(): void
308
308
$ this ->codeigniter ->run ();
309
309
$ output = ob_get_clean ();
310
310
311
- $ this ->assertStringContainsString ('http://hellowworld.com ' , $ output );
311
+ $ this ->assertStringContainsString ('http://hellowworld.com ' , ( string ) $ output );
312
312
313
313
$ this ->resetServices ();
314
314
}
@@ -346,7 +346,7 @@ public function testRegisterSameFilterTwiceWithDifferentArgument(): void
346
346
$ this ->codeigniter ->run ();
347
347
$ output = ob_get_clean ();
348
348
349
- $ this ->assertStringContainsString ('http://hellowworld.comhttp://hellowworld.com ' , $ output );
349
+ $ this ->assertStringContainsString ('http://hellowworld.comhttp://hellowworld.com ' , ( string ) $ output );
350
350
351
351
$ this ->resetServices ();
352
352
}
@@ -374,7 +374,7 @@ public function testDisableControllerFilters(): void
374
374
$ this ->codeigniter ->run ();
375
375
$ output = ob_get_clean ();
376
376
377
- $ this ->assertStringContainsString ('' , $ output );
377
+ $ this ->assertStringContainsString ('' , ( string ) $ output );
378
378
379
379
$ this ->resetServices ();
380
380
}
@@ -402,7 +402,7 @@ public function testRoutesIsEmpty(): void
402
402
$ this ->codeigniter ->run ();
403
403
$ output = ob_get_clean ();
404
404
405
- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
405
+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
406
406
}
407
407
408
408
public function testTransfersCorrectHTTPVersion (): void
@@ -447,7 +447,7 @@ public function testIgnoringErrorSuppressedByAt(): void
447
447
$ this ->codeigniter ->run ();
448
448
$ output = ob_get_clean ();
449
449
450
- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
450
+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
451
451
}
452
452
453
453
public function testRunForceSecure (): void
@@ -684,7 +684,7 @@ public function testRunDefaultRoute(): void
684
684
$ this ->codeigniter ->run ();
685
685
$ output = ob_get_clean ();
686
686
687
- $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , $ output );
687
+ $ this ->assertStringContainsString ('Welcome to CodeIgniter ' , ( string ) $ output );
688
688
}
689
689
690
690
public function testRunCLIRoute (): void
@@ -704,7 +704,7 @@ public function testRunCLIRoute(): void
704
704
$ this ->codeigniter ->run ();
705
705
$ output = ob_get_clean ();
706
706
707
- $ this ->assertStringContainsString ('Method Not Allowed ' , $ output );
707
+ $ this ->assertStringContainsString ('Method Not Allowed ' , ( string ) $ output );
708
708
}
709
709
710
710
public function testSpoofRequestMethodCanUsePUT (): void
@@ -795,7 +795,7 @@ public function testPageCacheSendSecureHeaders(): void
795
795
$ this ->codeigniter ->run ();
796
796
$ output = ob_get_clean ();
797
797
798
- $ this ->assertStringContainsString ('This is a test page ' , $ output );
798
+ $ this ->assertStringContainsString ('This is a test page ' , ( string ) $ output );
799
799
$ response = service ('response ' );
800
800
$ headers = $ response ->headers ();
801
801
$ this ->assertArrayHasKey ('X-Frame-Options ' , $ headers );
@@ -805,7 +805,7 @@ public function testPageCacheSendSecureHeaders(): void
805
805
$ this ->codeigniter ->run ();
806
806
$ output = ob_get_clean ();
807
807
808
- $ this ->assertStringContainsString ('This is a test page ' , $ output );
808
+ $ this ->assertStringContainsString ('This is a test page ' , ( string ) $ output );
809
809
$ response = service ('response ' );
810
810
$ headers = $ response ->headers ();
811
811
$ this ->assertArrayHasKey ('X-Frame-Options ' , $ headers );
0 commit comments