ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilQTIMatimageTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
22
23class ilQTIMatimageTest extends TestCase
24{
25 public function testConstruct(): void
26 {
27 $this->assertInstanceOf(ilQTIMatimage::class, new ilQTIMatimage());
28 }
29
30 public function testSetGetImagetype(): void
31 {
32 $instance = new ilQTIMatimage();
33 $instance->setImagetype('Some input.');
34 $this->assertEquals('Some input.', $instance->getImagetype());
35 }
36
37 public function testSetGetLabel(): void
38 {
39 $instance = new ilQTIMatimage();
40 $instance->setLabel('Some input.');
41 $this->assertEquals('Some input.', $instance->getLabel());
42 }
43
44 public function testSetGetHeight(): void
45 {
46 $instance = new ilQTIMatimage();
47 $instance->setHeight('Some input.');
48 $this->assertEquals('Some input.', $instance->getHeight());
49 }
50
51 public function testSetGetWidth(): void
52 {
53 $instance = new ilQTIMatimage();
54 $instance->setWidth('Some input.');
55 $this->assertEquals('Some input.', $instance->getWidth());
56 }
57
58 public function testSetGetUri(): void
59 {
60 $instance = new ilQTIMatimage();
61 $instance->setUri('Some input.');
62 $this->assertEquals('Some input.', $instance->getUri());
63 }
64
65 public function testSetGetEmbedded(): void
66 {
67 $instance = new ilQTIMatimage();
68 $instance->setEmbedded('Some input.');
69 $this->assertEquals('Some input.', $instance->getEmbedded());
70 }
71
72 public function testSetGetX0(): void
73 {
74 $instance = new ilQTIMatimage();
75 $instance->setX0('Some input.');
76 $this->assertEquals('Some input.', $instance->getX0());
77 }
78
79 public function testSetGetY(): void
80 {
81 $instance = new ilQTIMatimage();
82 $instance->setY0('Some input.');
83 $this->assertEquals('Some input.', $instance->getY0());
84 }
85
86 public function testSetGetEntityref(): void
87 {
88 $instance = new ilQTIMatimage();
89 $instance->setEntityref('Some input.');
90 $this->assertEquals('Some input.', $instance->getEntityref());
91 }
92
93 public function testSetGetContent(): void
94 {
95 $instance = new ilQTIMatimage();
96 $instance->setContent('Some input.');
97 $this->assertEquals('Some input.', $instance->getContent());
98 }
99}