Skip to content

Commit

Permalink
test: refactor: vendor/bin/rector process tests/system/
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 25, 2021
1 parent 9def243 commit 3cf95b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/system/HTTP/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public function testJSONWithArray()
$response->setJSON($body);

$this->assertSame($expected, $response->getJSON());
$this->assertNotFalse(strpos($response->getHeaderLine('content-type'), 'application/json'));
$this->assertStringContainsString('application/json', $response->getHeaderLine('content-type'));
}

public function testJSONGetFromNormalBody()
Expand Down Expand Up @@ -364,7 +364,7 @@ public function testXMLWithArray()
$response->setXML($body);

$this->assertSame($expected, $response->getXML());
$this->assertNotFalse(strpos($response->getHeaderLine('content-type'), 'application/xml'));
$this->assertStringContainsString('application/xml', $response->getHeaderLine('content-type'));
}

public function testXMLGetFromNormalBody()
Expand Down
4 changes: 2 additions & 2 deletions tests/system/View/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ public function testRenderLayoutWithInclude()

$content = $view->render('extend_include');

$this->assertNotFalse(strpos($content, '<p>Open</p>'));
$this->assertNotFalse(strpos($content, '<h1>Hello World</h1>'));
$this->assertStringContainsString('<p>Open</p>', $content);
$this->assertStringContainsString('<h1>Hello World</h1>', $content);
$this->assertSame(2, substr_count($content, 'Hello World'));
}

Expand Down

0 comments on commit 3cf95b5

Please sign in to comment.