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