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