Definition at line 26 of file ValidHTMLTest.php.
◆ testConstruct()
ILIAS\LegalDocuments\test\ValidHTMLTest::testConstruct |
( |
| ) |
|
Definition at line 28 of file ValidHTMLTest.php.
30 $this->assertInstanceOf(ValidHTML::class,
new ValidHTML());
◆ testIsTrue()
ILIAS\LegalDocuments\test\ValidHTMLTest::testIsTrue |
( |
string |
$text, |
|
|
bool |
$result |
|
) |
| |
textProvider
- Parameters
-
Definition at line 38 of file ValidHTMLTest.php.
40 $instance =
new ValidHTML();
41 $this->assertSame($result, $instance->isTrue($text));
◆ textProvider()
static ILIAS\LegalDocuments\test\ValidHTMLTest::textProvider |
( |
| ) |
|
|
static |
Definition at line 44 of file ValidHTMLTest.php.
47 'Plain Text' => [
'phpunit',
false],
48 'HTML Fragment' => [
'php<b>unit</b>',
true],
49 'HTML Fragment with Email Address Wrapped in <>' => [
'php<b>unit</b> <info@ilias.de>',
false],
50 'HTML' => [
'<html><body>php<b>unit</b></body></html>',
true],
51 'HTML with Email Address Wrapped in <>' => [
'<html><body>php<b>unit</b>Php Unit <info@ilias.de></body></html>',
false],
52 'HTML with Unsupported Entities' => [
'<html><body>php<b>unit</b>Php Unit<figure></figure></body></html>',
true],
53 'Invalid HTML' => [
'<html><body>php<b>unit</b>Php Unit<div </body></html>',
false],
The documentation for this class was generated from the following file: