File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ public function testJSONWithArray()
327
327
$ response ->setJSON ($ body );
328
328
329
329
$ this ->assertSame ($ expected , $ response ->getJSON ());
330
- $ this ->assertNotFalse ( strpos ( $ response ->getHeaderLine ('content-type ' ), ' application/json ' ));
330
+ $ this ->assertStringContainsString ( ' application/json ' , $ response ->getHeaderLine ('content-type ' ));
331
331
}
332
332
333
333
public function testJSONGetFromNormalBody ()
@@ -364,7 +364,7 @@ public function testXMLWithArray()
364
364
$ response ->setXML ($ body );
365
365
366
366
$ this ->assertSame ($ expected , $ response ->getXML ());
367
- $ this ->assertNotFalse ( strpos ( $ response ->getHeaderLine ('content-type ' ), ' application/xml ' ));
367
+ $ this ->assertStringContainsString ( ' application/xml ' , $ response ->getHeaderLine ('content-type ' ));
368
368
}
369
369
370
370
public function testXMLGetFromNormalBody ()
Original file line number Diff line number Diff line change @@ -316,8 +316,8 @@ public function testRenderLayoutWithInclude()
316
316
317
317
$ content = $ view ->render ('extend_include ' );
318
318
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 );
321
321
$ this ->assertSame (2 , substr_count ($ content , 'Hello World ' ));
322
322
}
323
323
You can’t perform that action at this time.
0 commit comments