Skip to content

Commit dd7092c

Browse files
committed
test: refactor: vendor/bin/rector process tests/system/
1 parent be5cd9b commit dd7092c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/system/HTTP/ResponseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

tests/system/View/ViewTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)