ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilQTIMattextTest Class Reference
+ Inheritance diagram for ilQTIMattextTest:
+ Collaboration diagram for ilQTIMattextTest:

Public Member Functions

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

Static Public Member Functions

static xmlSpaces ()
 

Detailed Description

Definition at line 23 of file ilQTIMattextTest.php.

Member Function Documentation

◆ testConstruct()

ilQTIMattextTest::testConstruct ( )

Definition at line 25 of file ilQTIMattextTest.php.

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

◆ testSetGetCharset()

ilQTIMattextTest::testSetGetCharset ( )

Definition at line 44 of file ilQTIMattextTest.php.

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

◆ testSetGetContent()

ilQTIMattextTest::testSetGetContent ( )

Definition at line 110 of file ilQTIMattextTest.php.

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

◆ testSetGetEntityref()

ilQTIMattextTest::testSetGetEntityref ( )

Definition at line 75 of file ilQTIMattextTest.php.

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

◆ testSetGetHeight()

ilQTIMattextTest::testSetGetHeight ( )

Definition at line 89 of file ilQTIMattextTest.php.

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

◆ testSetGetLabel()

ilQTIMattextTest::testSetGetLabel ( )

Definition at line 37 of file ilQTIMattextTest.php.

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

◆ testSetGetTexttype()

ilQTIMattextTest::testSetGetTexttype ( )

Definition at line 30 of file ilQTIMattextTest.php.

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

◆ testSetGetUri()

ilQTIMattextTest::testSetGetUri ( )

Definition at line 51 of file ilQTIMattextTest.php.

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

◆ testSetGetWidth()

ilQTIMattextTest::testSetGetWidth ( )

Definition at line 82 of file ilQTIMattextTest.php.

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

◆ testSetGetX0()

ilQTIMattextTest::testSetGetX0 ( )

Definition at line 96 of file ilQTIMattextTest.php.

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

◆ testSetGetXmllang()

ilQTIMattextTest::testSetGetXmllang ( )

Definition at line 68 of file ilQTIMattextTest.php.

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

◆ testSetGetXmlspace()

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

xmlSpaces

Definition at line 61 of file ilQTIMattextTest.php.

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

◆ testSetGetY0()

ilQTIMattextTest::testSetGetY0 ( )

Definition at line 103 of file ilQTIMattextTest.php.

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

◆ xmlSpaces()

static ilQTIMattextTest::xmlSpaces ( )
static

Definition at line 117 of file ilQTIMattextTest.php.

References null, ilQTIMattext\SPACE_DEFAULT, and ilQTIMattext\SPACE_PRESERVE.

117  : array
118  {
119  class_exists(ilQTIMattext::class); // Force autoload to define the constants.
120  return [
121  ['preserve', ilQTIMattext::SPACE_PRESERVE],
123  ['default', ilQTIMattext::SPACE_DEFAULT],
125  ['Random input', null],
126  ];
127  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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