add sanitizer integration test

This commit is contained in:
Andrew Dolgov 2023-12-02 11:01:11 +03:00
parent ce9847d317
commit e52eaf0e7b
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 13 additions and 0 deletions

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