ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilQTIAssessmentTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
22
23class ilQTIAssessmentTest extends TestCase
24{
25 public function testConstruct(): void
26 {
27 $this->assertInstanceOf(ilQTIAssessment::class, new ilQTIAssessment());
28 }
29
30 public function testSetGetIdent(): void
31 {
32 $instance = new ilQTIAssessment();
33 $instance->setIdent('Some input.');
34 $this->assertEquals('Some input.', $instance->getIdent());
35 }
36
37 public function testSetGetTitle(): void
38 {
39 $instance = new ilQTIAssessment();
40 $instance->setTitle('Some input.');
41 $this->assertEquals('Some input.', $instance->getTitle());
42 }
43
44 public function testSetGetXmllang(): void
45 {
46 $instance = new ilQTIAssessment();
47 $instance->setXmllang('Some input.');
48 $this->assertEquals('Some input.', $instance->getXmllang());
49 }
50
51 public function testSetGetComment(): void
52 {
53 $instance = new ilQTIAssessment();
54 $instance->setComment('Some input.');
55 $this->assertEquals('Some input.', $instance->getComment());
56 }
57}