21 lines
432 B
PHP
21 lines
432 B
PHP
<?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>')
|
|
);
|
|
}
|
|
|
|
public function test_sanitize_keep_figure(): void {
|
|
$this->assertEquals(
|
|
'<figure>Content</figure>',
|
|
Sanitizer::sanitize('<figure>Content</figure>')
|
|
);
|
|
}
|
|
}
|
|
|