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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user