Skip to content

Commit

Permalink
Cast response body to a string for the entire response body.
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jan 8, 2024
1 parent b427321 commit 7aa2168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/MezzioInstallerTest/HomePageResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function testHomePageHtmlResponseContainsExpectedInfo(
self::assertEquals(200, $response->getStatusCode());

// Test response content
$html = $response->getBody()->getContents();
$html = $response->getBody()->__toString();

self::assertStringContainsString(sprintf('Get started with %s', $containerName), $html);
self::assertStringContainsString(sprintf('href="%s"', $containerDocs), $html);
Expand Down

0 comments on commit 7aa2168

Please sign in to comment.