ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
GroupTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use PHPUnit\Framework\TestCase;
29
30class GroupTest extends TestCase
31{
32 public function testConstruct(): void
33 {
34 $this->assertInstanceOf(Group::class, new Group());
35 }
36
37 public function testHtmlAttributeValue(): void
38 {
39 $group = new Group();
40 $this->assertInstanceOf(HTMLAttributeValue::class, $group->htmlAttributeValue());
41 }
42
43 public function testHtmlSpecialCharsAsEntities(): void
44 {
45 $group = new Group();
46 $this->assertInstanceOf(HTMLSpecialCharsAsEntities::class, $group->htmlSpecialCharsAsEntities());
47 }
48
49 public function testJson(): void
50 {
51 $group = new Group();
52 $this->assertInstanceOf(Json::class, $group->json());
53 }
54
55 public function testUrl(): void
56 {
57 $group = new Group();
58 $this->assertInstanceOf(URL::class, $group->url());
59 }
60}
Inspired by: Laminas escaper: https://github.com/laminas/laminas-escaper.
Inspired by: Laminas escaper: https://github.com/laminas/laminas-escaper.
This class expects a valid UTF-8 string.
Definition: Json.php:35
Inspired by: Laminas escaper: https://github.com/laminas/laminas-escaper.
Definition: URL.php:36