ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilQTIMattextTest.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
22
use
PHPUnit\Framework\TestCase
;
23
24
class
ilQTIMattextTest
extends
TestCase
25
{
26
public
function
testConstruct
(): void
27
{
28
$this->assertInstanceOf(ilQTIMattext::class,
new
ilQTIMattext
());
29
}
30
31
public
function
testSetGetTexttype
(): void
32
{
33
$instance =
new
ilQTIMattext
();
34
$instance->setTexttype(
'Some input.'
);
35
$this->assertEquals(
'Some input.'
, $instance->getTexttype());
36
}
37
38
public
function
testSetGetLabel
(): void
39
{
40
$instance =
new
ilQTIMattext
();
41
$instance->setLabel(
'Some input.'
);
42
$this->assertEquals(
'Some input.'
, $instance->getLabel());
43
}
44
45
public
function
testSetGetCharset
(): void
46
{
47
$instance =
new
ilQTIMattext
();
48
$instance->setCharset(
'Some input.'
);
49
$this->assertEquals(
'Some input.'
, $instance->getCharset());
50
}
51
52
public
function
testSetGetUri
(): void
53
{
54
$instance =
new
ilQTIMattext
();
55
$instance->setUri(
'Some input.'
);
56
$this->assertEquals(
'Some input.'
, $instance->getUri());
57
}
58
62
public
function
testSetGetXmlspace
(
string
$input, ?
string
$expected): void
63
{
64
$instance =
new
ilQTIMattext
();
65
$instance->setXmlspace($input);
66
$this->assertEquals($expected, $instance->getXmlspace());
67
}
68
69
public
function
testSetGetXmllang
(): void
70
{
71
$instance =
new
ilQTIMattext
();
72
$instance->setXmllang(
'Some input.'
);
73
$this->assertEquals(
'Some input.'
, $instance->getXmllang());
74
}
75
76
public
function
testSetGetEntityref
(): void
77
{
78
$instance =
new
ilQTIMattext
();
79
$instance->setEntityref(
'Some input.'
);
80
$this->assertEquals(
'Some input.'
, $instance->getEntityref());
81
}
82
83
public
function
testSetGetWidth
(): void
84
{
85
$instance =
new
ilQTIMattext
();
86
$instance->setWidth(
'Some input.'
);
87
$this->assertEquals(
'Some input.'
, $instance->getWidth());
88
}
89
90
public
function
testSetGetHeight
(): void
91
{
92
$instance =
new
ilQTIMattext
();
93
$instance->setHeight(
'Some input.'
);
94
$this->assertEquals(
'Some input.'
, $instance->getHeight());
95
}
96
97
public
function
testSetGetX0
(): void
98
{
99
$instance =
new
ilQTIMattext
();
100
$instance->setX0(
'Some input.'
);
101
$this->assertEquals(
'Some input.'
, $instance->getX0());
102
}
103
104
public
function
testSetGetY0
(): void
105
{
106
$instance =
new
ilQTIMattext
();
107
$instance->setY0(
'Some input.'
);
108
$this->assertEquals(
'Some input.'
, $instance->getY0());
109
}
110
111
public
function
testSetGetContent
(): void
112
{
113
$instance =
new
ilQTIMattext
();
114
$instance->setContent(
'Some input.'
);
115
$this->assertEquals(
'Some input.'
, $instance->getContent());
116
}
117
118
public
function
xmlSpaces
(): array
119
{
120
class_exists(ilQTIMattext::class);
// Force autoload to define the constants.
121
return
[
122
[
'preserve'
,
ilQTIMattext::SPACE_PRESERVE
],
123
[
'1'
,
ilQTIMattext::SPACE_PRESERVE
],
124
[
'default'
,
ilQTIMattext::SPACE_DEFAULT
],
125
[
'2'
,
ilQTIMattext::SPACE_DEFAULT
],
126
[
'Random input'
, null],
127
];
128
}
129
}
ilQTIMattextTest
Definition:
ilQTIMattextTest.php:24
ilQTIMattext
Definition:
class.ilQTIMattext.php:30
ilQTIMattextTest\testSetGetUri
testSetGetUri()
Definition:
ilQTIMattextTest.php:52
ilQTIMattextTest\testSetGetHeight
testSetGetHeight()
Definition:
ilQTIMattextTest.php:90
ilQTIMattextTest\testSetGetXmlspace
testSetGetXmlspace(string $input, ?string $expected)
xmlSpaces
Definition:
ilQTIMattextTest.php:62
ilQTIMattextTest\testConstruct
testConstruct()
Definition:
ilQTIMattextTest.php:26
ilQTIMattextTest\xmlSpaces
xmlSpaces()
Definition:
ilQTIMattextTest.php:118
ilQTIMattextTest\testSetGetX0
testSetGetX0()
Definition:
ilQTIMattextTest.php:97
ilQTIMattextTest\testSetGetEntityref
testSetGetEntityref()
Definition:
ilQTIMattextTest.php:76
ilQTIMattextTest\testSetGetY0
testSetGetY0()
Definition:
ilQTIMattextTest.php:104
ilQTIMattextTest\testSetGetWidth
testSetGetWidth()
Definition:
ilQTIMattextTest.php:83
ilQTIMattextTest\testSetGetXmllang
testSetGetXmllang()
Definition:
ilQTIMattextTest.php:69
ilQTIMattext\SPACE_PRESERVE
const SPACE_PRESERVE
Definition:
class.ilQTIMattext.php:32
ilQTIMattextTest\testSetGetLabel
testSetGetLabel()
Definition:
ilQTIMattextTest.php:38
ilQTIMattextTest\testSetGetContent
testSetGetContent()
Definition:
ilQTIMattextTest.php:111
ilQTIMattext\SPACE_DEFAULT
const SPACE_DEFAULT
Definition:
class.ilQTIMattext.php:33
ilQTIMattextTest\testSetGetTexttype
testSetGetTexttype()
Definition:
ilQTIMattextTest.php:31
ilQTIMattextTest\testSetGetCharset
testSetGetCharset()
Definition:
ilQTIMattextTest.php:45
TestCase
Services
QTI
test
ilQTIMattextTest.php
Generated on Tue Apr 1 2025 22:02:31 for ILIAS by
1.8.13 (using
Doxyfile
)