19 declare(strict_types=1);
37 return HTMLPurifier_Config::createDefault();
46 $this->assertSame(
'phpunit', $purifier->purify(
'phpunit'));
47 $this->assertSame(self::TO_PURIFY, $purifier->purifyArray(self::TO_PURIFY));
62 'resource' => [fopen(
'php://memory',
'rb')],
66 #[DataProvider('invalidHtmlDataTypeProvider')] 69 $this->expectException(InvalidArgumentException::class);
72 $purifier->purifyArray([$element]);
testPurifierIsCalledIfStringsArePurified()
testExceptionIsRaisedIfNonStringElementsArePassedForHtmlBatchProcessing($element)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static invalidHtmlDataTypeProvider()