Skip to content

Commit ca5d760

Browse files
committed
Fix failing ExportTest on PHP 8.1
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 8da8d3f commit ca5d760

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/classes/ExportTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
use function htmlspecialchars;
1515

16+
use const ENT_COMPAT;
17+
1618
/**
1719
* @covers \PhpMyAdmin\Export
1820
* @group large
@@ -180,7 +182,7 @@ public function testExportDatabase(): void
180182
181183
SQL;
182184

183-
$this->assertSame(htmlspecialchars($expected), $this->getActualOutputForAssertion());
185+
$this->assertSame(htmlspecialchars($expected, ENT_COMPAT), $this->getActualOutputForAssertion());
184186
}
185187

186188
public function testExportServer(): void
@@ -258,6 +260,6 @@ public function testExportServer(): void
258260
259261
SQL;
260262

261-
$this->assertSame(htmlspecialchars($expected), $this->getActualOutputForAssertion());
263+
$this->assertSame(htmlspecialchars($expected, ENT_COMPAT), $this->getActualOutputForAssertion());
262264
}
263265
}

0 commit comments

Comments
 (0)