add sanitizer integration test

This commit is contained in:
Andrew Dolgov
2023-12-02 11:01:11 +03:00
parent ce9847d317
commit e52eaf0e7b

View File

@@ -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>')
);
}
}