summaryrefslogtreecommitdiff
path: root/tests/integration/SanitizerTest.php
blob: 1981079f0446019b9fcfa3f9d80c071835f98268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>')
		);
	}
}