Definition at line 26 of file StripTagsTest.php.
◆ setUp()
Definition at line 34 of file StripTagsTest.php.
37 $this->createMock(DataFactory::class),
38 $language = $this->createMock(
ILIAS\Language\Language::class)
40 $this->strip_tags = $this->f->string()->stripTags();
Interface Observer Contains several chained tasks and infos about them.
◆ testNoString()
StripTagsTest::testNoString |
( |
| ) |
|
Definition at line 49 of file StripTagsTest.php.
51 $this->expectException(InvalidArgumentException::class);
52 $this->strip_tags->transform(0);
◆ testTransform()
StripTagsTest::testTransform |
( |
| ) |
|
Definition at line 43 of file StripTagsTest.php.
References $res.
45 $res = $this->strip_tags->transform(self::STRING_TO_STRIP);
46 $this->assertEquals(self::EXPECTED_RESULT,
$res);
◆ $f
Refinery StripTagsTest::$f |
|
private |
◆ $strip_tags
◆ EXPECTED_RESULT
const StripTagsTest::EXPECTED_RESULT = "I contain tags." |
|
private |
◆ STRING_TO_STRIP
const StripTagsTest::STRING_TO_STRIP = "I <script>contain</a> tags." |
|
private |
The documentation for this class was generated from the following file: