1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

Make purifyArray work with empty array (#245)

This commit is contained in:
Fräntz Miccoli
2020-02-22 18:12:02 +01:00
committed by GitHub
parent c2c91f52d0
commit ced089434d
2 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,13 @@ class HTMLPurifierTest extends HTMLPurifier_Harness
);
}
public function test_purifyArray_empty() {
$purifiedEmptyArray = $this->purifier->purifyArray(array());
$this->assertTrue(
empty($purifiedEmptyArray)
);
}
public function testGetInstance()
{
$purifier = HTMLPurifier::getInstance();