add sanitizer integration test
This commit is contained in:
13
tests/integration/SanitizerTest.php
Normal file
13
tests/integration/SanitizerTest.php
Normal 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>中文</p>',
|
||||
Sanitizer::sanitize('<p>中文</p>')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user