summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-12-02 11:01:11 +0300
committerAndrew Dolgov <[email protected]>2023-12-02 11:14:07 +0300
commite52eaf0e7bcc2c9636e61d6a67322153e1f247bd (patch)
tree5d74d721c82f0399afe2c0a7b494207217deea74
parentce9847d31750102bde8acca3ba5a037fdc9f5c12 (diff)
add sanitizer integration test
-rw-r--r--tests/integration/SanitizerTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/integration/SanitizerTest.php b/tests/integration/SanitizerTest.php
new file mode 100644
index 000000000..1981079f0
--- /dev/null
+++ b/tests/integration/SanitizerTest.php
@@ -0,0 +1,13 @@
+<?php
+use PHPUnit\Framework\TestCase;
+
+/** @group integration */
+final class SanitizerTest extends TestCase {
+ public function test_sanitize_non_ascii(): void {
+ $this->assertEquals(
+ '<p>&#20013;&#25991;</p>',
+ Sanitizer::sanitize('<p>中文</p>')
+ );
+ }
+}
+