@@ -30,7 +30,7 @@ protected function getEnvironmentSetUp($app)
3030 $ this ->app = null ;
3131 }
3232
33- protected function setUp ()
33+ protected function setUp () : void
3434 {
3535 parent ::setUp ();
3636
@@ -129,7 +129,7 @@ protected function viewWithNothing()
129129 ' );
130130 }
131131
132- protected function tearDown ()
132+ protected function tearDown () : void
133133 {
134134 parent ::tearDown ();
135135
@@ -149,58 +149,58 @@ public function testDoesntInjectsOnJson()
149149 {
150150 $ response = $ this ->get ('/json ' );
151151
152- $ this ->assertNotContains ('start-larapoke-script ' , $ response ->content ());
153- $ this ->assertNotContains ('end-larapoke-script ' , $ response ->content ());
152+ $ this ->assertStringNotContainsString ('start-larapoke-script ' , $ response ->content ());
153+ $ this ->assertStringNotContainsString ('end-larapoke-script ' , $ response ->content ());
154154 }
155155
156156
157157 public function testNoScriptOnNoMiddleware ()
158158 {
159159 $ response = $ this ->get ('/no-middleware ' );
160- $ this ->assertNotContains ('start-larapoke-script ' , $ response ->content ());
161- $ this ->assertNotContains ('end-larapoke-script ' , $ response ->content ());
160+ $ this ->assertStringNotContainsString ('start-larapoke-script ' , $ response ->content ());
161+ $ this ->assertStringNotContainsString ('end-larapoke-script ' , $ response ->content ());
162162 }
163163
164164 public function testDetectsHeaderOrForm ()
165165 {
166166 $ response = $ this ->get ('/register ' );
167- $ this ->assertContains ('start-larapoke-script ' , $ response ->content ());
168- $ this ->assertContains ('end-larapoke-script ' , $ response ->content ());
167+ $ this ->assertStringContainsString ('start-larapoke-script ' , $ response ->content ());
168+ $ this ->assertStringContainsString ('end-larapoke-script ' , $ response ->content ());
169169 }
170170
171171 public function testDetectsHeader ()
172172 {
173173 $ response = $ this ->get ('/header-only ' );
174- $ this ->assertContains ('start-larapoke-script ' , $ response ->content ());
175- $ this ->assertContains ('end-larapoke-script ' , $ response ->content ());
174+ $ this ->assertStringContainsString ('start-larapoke-script ' , $ response ->content ());
175+ $ this ->assertStringContainsString ('end-larapoke-script ' , $ response ->content ());
176176 }
177177
178178 public function testDetectsForm ()
179179 {
180180 $ response = $ this ->get ('/form-only ' );
181- $ this ->assertContains ('start-larapoke-script ' , $ response ->content ());
182- $ this ->assertContains ('end-larapoke-script ' , $ response ->content ());
181+ $ this ->assertStringContainsString ('start-larapoke-script ' , $ response ->content ());
182+ $ this ->assertStringContainsString ('end-larapoke-script ' , $ response ->content ());
183183 }
184184
185185 public function testDetectsNothing ()
186186 {
187187 $ response = $ this ->get ('/nothing ' );
188- $ this ->assertNotContains ('start-larapoke-script ' , $ response ->content ());
189- $ this ->assertNotContains ('end-larapoke-script ' , $ response ->content ());
188+ $ this ->assertStringNotContainsString ('start-larapoke-script ' , $ response ->content ());
189+ $ this ->assertStringNotContainsString ('end-larapoke-script ' , $ response ->content ());
190190 }
191191
192192 public function testInjectsForcefullyWithoutDetect ()
193193 {
194194 $ response = $ this ->get ('/nothing-with-middleware ' );
195- $ this ->assertContains ('start-larapoke-script ' , $ response ->content ());
196- $ this ->assertContains ('end-larapoke-script ' , $ response ->content ());
195+ $ this ->assertStringContainsString ('start-larapoke-script ' , $ response ->content ());
196+ $ this ->assertStringContainsString ('end-larapoke-script ' , $ response ->content ());
197197
198198 LarapokeDirective::setWasRendered (false );
199199
200200 $ response = $ this ->get ('/login ' );
201201
202- $ this ->assertContains ('start-larapoke-script ' , $ response ->content ());
203- $ this ->assertContains ('end-larapoke-script ' , $ response ->content ());
202+ $ this ->assertStringContainsString ('start-larapoke-script ' , $ response ->content ());
203+ $ this ->assertStringContainsString ('end-larapoke-script ' , $ response ->content ());
204204 }
205205
206206}
0 commit comments