blob: 0f15bf0cac5b2034858242528453473f629ee371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
use PHPUnit\Framework\Attributes\Group;
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>')
);
}
}
|