ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilQTIMattextTest Class Reference
+ Inheritance diagram for ilQTIMattextTest:
+ Collaboration diagram for ilQTIMattextTest:

Public Member Functions

 testConstruct ()
 
 testSetGetTexttype ()
 
 testSetGetLabel ()
 
 testSetGetCharset ()
 
 testSetGetUri ()
 
 testSetGetXmlspace (string $input, ?string $expected)
 
 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 108 of file ilQTIMattextTest.php.

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

◆ testSetGetEntityref()

ilQTIMattextTest::testSetGetEntityref ( )

Definition at line 73 of file ilQTIMattextTest.php.

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

◆ testSetGetHeight()

ilQTIMattextTest::testSetGetHeight ( )

Definition at line 87 of file ilQTIMattextTest.php.

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

◆ 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 80 of file ilQTIMattextTest.php.

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

◆ testSetGetX0()

ilQTIMattextTest::testSetGetX0 ( )

Definition at line 94 of file ilQTIMattextTest.php.

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

◆ testSetGetXmllang()

ilQTIMattextTest::testSetGetXmllang ( )

Definition at line 66 of file ilQTIMattextTest.php.

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

◆ testSetGetXmlspace()

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

Definition at line 59 of file ilQTIMattextTest.php.

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

◆ testSetGetY0()

ilQTIMattextTest::testSetGetY0 ( )

Definition at line 101 of file ilQTIMattextTest.php.

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

◆ xmlSpaces()

static ilQTIMattextTest::xmlSpaces ( )
static

Definition at line 115 of file ilQTIMattextTest.php.

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

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

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