ILIAS  release_8 Revision v8.24
ilQTIMattextTest Class Reference
+ Inheritance diagram for ilQTIMattextTest:
+ Collaboration diagram for ilQTIMattextTest:

Public Member Functions

 testConstruct ()
 
 testSetGetTexttype ()
 
 testSetGetLabel ()
 
 testSetGetCharset ()
 
 testSetGetUri ()
 
 testSetGetXmlspace (string $input, ?string $expected)
 @dataProvider xmlSpaces More...
 
 testSetGetXmllang ()
 
 testSetGetEntityref ()
 
 testSetGetWidth ()
 
 testSetGetHeight ()
 
 testSetGetX0 ()
 
 testSetGetY0 ()
 
 testSetGetContent ()
 
 xmlSpaces ()
 

Detailed Description

Definition at line 24 of file ilQTIMattextTest.php.

Member Function Documentation

◆ testConstruct()

ilQTIMattextTest::testConstruct ( )

Definition at line 26 of file ilQTIMattextTest.php.

26 : void
27 {
28 $this->assertInstanceOf(ilQTIMattext::class, new ilQTIMattext());
29 }

◆ testSetGetCharset()

ilQTIMattextTest::testSetGetCharset ( )

Definition at line 45 of file ilQTIMattextTest.php.

45 : void
46 {
47 $instance = new ilQTIMattext();
48 $instance->setCharset('Some input.');
49 $this->assertEquals('Some input.', $instance->getCharset());
50 }

◆ testSetGetContent()

ilQTIMattextTest::testSetGetContent ( )

Definition at line 111 of file ilQTIMattextTest.php.

111 : void
112 {
113 $instance = new ilQTIMattext();
114 $instance->setContent('Some input.');
115 $this->assertEquals('Some input.', $instance->getContent());
116 }

◆ testSetGetEntityref()

ilQTIMattextTest::testSetGetEntityref ( )

Definition at line 76 of file ilQTIMattextTest.php.

76 : void
77 {
78 $instance = new ilQTIMattext();
79 $instance->setEntityref('Some input.');
80 $this->assertEquals('Some input.', $instance->getEntityref());
81 }

◆ testSetGetHeight()

ilQTIMattextTest::testSetGetHeight ( )

Definition at line 90 of file ilQTIMattextTest.php.

90 : void
91 {
92 $instance = new ilQTIMattext();
93 $instance->setHeight('Some input.');
94 $this->assertEquals('Some input.', $instance->getHeight());
95 }

◆ testSetGetLabel()

ilQTIMattextTest::testSetGetLabel ( )

Definition at line 38 of file ilQTIMattextTest.php.

38 : void
39 {
40 $instance = new ilQTIMattext();
41 $instance->setLabel('Some input.');
42 $this->assertEquals('Some input.', $instance->getLabel());
43 }

◆ testSetGetTexttype()

ilQTIMattextTest::testSetGetTexttype ( )

Definition at line 31 of file ilQTIMattextTest.php.

31 : void
32 {
33 $instance = new ilQTIMattext();
34 $instance->setTexttype('Some input.');
35 $this->assertEquals('Some input.', $instance->getTexttype());
36 }

◆ testSetGetUri()

ilQTIMattextTest::testSetGetUri ( )

Definition at line 52 of file ilQTIMattextTest.php.

52 : void
53 {
54 $instance = new ilQTIMattext();
55 $instance->setUri('Some input.');
56 $this->assertEquals('Some input.', $instance->getUri());
57 }

◆ testSetGetWidth()

ilQTIMattextTest::testSetGetWidth ( )

Definition at line 83 of file ilQTIMattextTest.php.

83 : void
84 {
85 $instance = new ilQTIMattext();
86 $instance->setWidth('Some input.');
87 $this->assertEquals('Some input.', $instance->getWidth());
88 }

◆ testSetGetX0()

ilQTIMattextTest::testSetGetX0 ( )

Definition at line 97 of file ilQTIMattextTest.php.

97 : void
98 {
99 $instance = new ilQTIMattext();
100 $instance->setX0('Some input.');
101 $this->assertEquals('Some input.', $instance->getX0());
102 }

◆ testSetGetXmllang()

ilQTIMattextTest::testSetGetXmllang ( )

Definition at line 69 of file ilQTIMattextTest.php.

69 : void
70 {
71 $instance = new ilQTIMattext();
72 $instance->setXmllang('Some input.');
73 $this->assertEquals('Some input.', $instance->getXmllang());
74 }

◆ testSetGetXmlspace()

ilQTIMattextTest::testSetGetXmlspace ( string  $input,
?string  $expected 
)

@dataProvider xmlSpaces

Definition at line 62 of file ilQTIMattextTest.php.

62 : void
63 {
64 $instance = new ilQTIMattext();
65 $instance->setXmlspace($input);
66 $this->assertEquals($expected, $instance->getXmlspace());
67 }

◆ testSetGetY0()

ilQTIMattextTest::testSetGetY0 ( )

Definition at line 104 of file ilQTIMattextTest.php.

104 : void
105 {
106 $instance = new ilQTIMattext();
107 $instance->setY0('Some input.');
108 $this->assertEquals('Some input.', $instance->getY0());
109 }

◆ xmlSpaces()

ilQTIMattextTest::xmlSpaces ( )

Definition at line 118 of file ilQTIMattextTest.php.

118 : array
119 {
120 class_exists(ilQTIMattext::class); // Force autoload to define the constants.
121 return [
122 ['preserve', ilQTIMattext::SPACE_PRESERVE],
124 ['default', ilQTIMattext::SPACE_DEFAULT],
126 ['Random input', null],
127 ];
128 }

References ilQTIMattext\SPACE_DEFAULT, and ilQTIMattext\SPACE_PRESERVE.


The documentation for this class was generated from the following file: