File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ public function testJSONWithArray()
327327 $ response ->setJSON ($ body );
328328
329329 $ this ->assertSame ($ expected , $ response ->getJSON ());
330- $ this ->assertNotFalse ( strpos ( $ response ->getHeaderLine ('content-type ' ), ' application/json ' ));
330+ $ this ->assertStringContainsString ( ' application/json ' , $ response ->getHeaderLine ('content-type ' ));
331331 }
332332
333333 public function testJSONGetFromNormalBody ()
@@ -364,7 +364,7 @@ public function testXMLWithArray()
364364 $ response ->setXML ($ body );
365365
366366 $ this ->assertSame ($ expected , $ response ->getXML ());
367- $ this ->assertNotFalse ( strpos ( $ response ->getHeaderLine ('content-type ' ), ' application/xml ' ));
367+ $ this ->assertStringContainsString ( ' application/xml ' , $ response ->getHeaderLine ('content-type ' ));
368368 }
369369
370370 public function testXMLGetFromNormalBody ()
Original file line number Diff line number Diff line change @@ -316,8 +316,8 @@ public function testRenderLayoutWithInclude()
316316
317317 $ content = $ view ->render ('extend_include ' );
318318
319- $ this ->assertNotFalse ( strpos ( $ content , '<p>Open</p> ' ) );
320- $ this ->assertNotFalse ( strpos ( $ content , '<h1>Hello World</h1> ' ) );
319+ $ this ->assertStringContainsString ( '<p>Open</p> ' , $ content );
320+ $ this ->assertStringContainsString ( '<h1>Hello World</h1> ' , $ content );
321321 $ this ->assertSame (2 , substr_count ($ content , 'Hello World ' ));
322322 }
323323
You can’t perform that action at this time.
0 commit comments