diff options
author | Andrew Dolgov <[email protected]> | 2023-12-02 11:01:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-12-02 11:14:07 +0300 |
commit | e52eaf0e7bcc2c9636e61d6a67322153e1f247bd (patch) | |
tree | 5d74d721c82f0399afe2c0a7b494207217deea74 | |
parent | ce9847d31750102bde8acca3ba5a037fdc9f5c12 (diff) |
add sanitizer integration test
-rw-r--r-- | tests/integration/SanitizerTest.php | 13 |
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>中文</p>', + Sanitizer::sanitize('<p>中文</p>') + ); + } +} + |