◆ getPurifier()
ilHtmlPurifierLibWrapperTest::getPurifier |
( |
| ) |
|
|
private |
◆ invalidHtmlDataTypeProvider()
static ilHtmlPurifierLibWrapperTest::invalidHtmlDataTypeProvider |
( |
| ) |
|
|
static |
- Returns
- array{integer: int[], float: float[], null: null[], array: never[][], object: \stdClass[], bool: false[], resource: resource[]|false[]}
Definition at line 53 of file ilHtmlPurifierLibWrapperTest.php.
53 : array
54 {
55 return [
56 'integer' => [5],
57 'float' => [0.1],
58 'null' => [null],
59 'array' => [[]],
60 'object' => [new stdClass()],
61 'bool' => [false],
62 'resource' => [fopen('php://memory', 'rb')],
63 ];
64 }
◆ testExceptionIsRaisedIfNonStringElementsArePassedForHtmlBatchProcessing()
ilHtmlPurifierLibWrapperTest::testExceptionIsRaisedIfNonStringElementsArePassedForHtmlBatchProcessing |
( |
|
$element | ) |
|
◆ testPurifierIsCalledIfStringsArePurified()
ilHtmlPurifierLibWrapperTest::testPurifierIsCalledIfStringsArePurified |
( |
| ) |
|
Definition at line 42 of file ilHtmlPurifierLibWrapperTest.php.
42 : void
43 {
45
46 $this->assertSame('phpunit', $purifier->purify('phpunit'));
47 $this->assertSame(self::TO_PURIFY, $purifier->purifyArray(self::TO_PURIFY));
48 }
References getPurifier().
◆ TO_PURIFY
const array ilHtmlPurifierLibWrapperTest::TO_PURIFY |
|
private |
The documentation for this class was generated from the following file: