ILIAS  trunk Revision v12.0_alpha-1541-g23eaa5e013d
GroupTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Refinery\URI\Group as URIGroup;
27use PHPUnit\Framework\TestCase;
28
29class GroupTest extends TestCase
30{
31 public function testToStringTransformationInstance(): void
32 {
33 $group = new URIGroup();
34 $transformation = $group->toString();
35 $this->assertInstanceOf(ToStringTransformation::class, $transformation);
36 }
37
38 public function testToSvgTransformationInstance(): void
39 {
40 $group = new URIGroup();
41 $transformation = $group->toSvgQrCode();
42 $this->assertInstanceOf(ToSvgQrCodeTransformation::class, $transformation);
43 }
44
45 public function testFromSvgTransformationInstance(): void
46 {
47 $group = new URIGroup();
48 $transformation = $group->fromSvg();
49 $this->assertInstanceOf(FromSvgTransformation::class, $transformation);
50 }
51}