Skip to content

Commit

Permalink
Avoid deprecations when using the masterminds/html5 HTML5 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ste93cry committed Dec 4, 2023
1 parent 882839c commit f79b437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/End2End/End2EndTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function testGet200WithSubrequest(): void
public function testGet404(): void
{
$client = static::createClient(['debug' => false]);
$client->useHtml5Parser(false);

try {
$client->request('GET', '/missing-page');
Expand All @@ -112,6 +113,7 @@ public function testGet404(): void
public function testGetBadRequest(): void
{
$client = static::createClient(['debug' => false]);
$client->useHtml5Parser(false);

$client->request('GET', '/bad-request');

Expand All @@ -126,6 +128,7 @@ public function testGetBadRequest(): void
public function testGet500(): void
{
$client = static::createClient();
$client->useHtml5Parser(false);

try {
$client->request('GET', '/exception');
Expand Down

0 comments on commit f79b437

Please sign in to comment.