Definition at line 23 of file ilQTIDecvarTest.php.
◆ testConstruct()
ilQTIDecvarTest::testConstruct |
( |
| ) |
|
◆ testSetGetContent()
ilQTIDecvarTest::testSetGetContent |
( |
| ) |
|
Definition at line 80 of file ilQTIDecvarTest.php.
80 : void
81 {
83 $instance->setContent('Some input.');
84 $this->assertEquals('Some input.', $instance->getContent());
85 }
◆ testSetGetCutvalue()
ilQTIDecvarTest::testSetGetCutvalue |
( |
| ) |
|
Definition at line 73 of file ilQTIDecvarTest.php.
73 : void
74 {
76 $instance->setCutvalue('Some input.');
77 $this->assertEquals('Some input.', $instance->getCutvalue());
78 }
◆ testSetGetDefaultval()
ilQTIDecvarTest::testSetGetDefaultval |
( |
| ) |
|
Definition at line 45 of file ilQTIDecvarTest.php.
45 : void
46 {
48 $instance->setDefaultval('Some input.');
49 $this->assertEquals('Some input.', $instance->getDefaultval());
50 }
◆ testSetGetMaxvalue()
ilQTIDecvarTest::testSetGetMaxvalue |
( |
| ) |
|
Definition at line 59 of file ilQTIDecvarTest.php.
59 : void
60 {
62 $instance->setMaxvalue('Some input.');
63 $this->assertEquals('Some input.', $instance->getMaxvalue());
64 }
◆ testSetGetMembers()
ilQTIDecvarTest::testSetGetMembers |
( |
| ) |
|
Definition at line 66 of file ilQTIDecvarTest.php.
66 : void
67 {
69 $instance->setMembers('Some input.');
70 $this->assertEquals('Some input.', $instance->getMembers());
71 }
◆ testSetGetMinvalue()
ilQTIDecvarTest::testSetGetMinvalue |
( |
| ) |
|
Definition at line 52 of file ilQTIDecvarTest.php.
52 : void
53 {
55 $instance->setMinvalue('Some input.');
56 $this->assertEquals('Some input.', $instance->getMinvalue());
57 }
◆ testSetGetVarname()
ilQTIDecvarTest::testSetGetVarname |
( |
| ) |
|
Definition at line 30 of file ilQTIDecvarTest.php.
30 : void
31 {
33 $instance->setVarname('Some input.');
34 $this->assertEquals('Some input.', $instance->getVarname());
35 }
◆ testSetGetVartype()
ilQTIDecvarTest::testSetGetVartype |
( |
string |
$input, |
|
|
?string |
$expected |
|
) |
| |
Definition at line 38 of file ilQTIDecvarTest.php.
38 : void
39 {
41 $instance->setVartype($input);
42 $this->assertEquals($expected, $instance->getVartype());
43 }
◆ vartypes()
static ilQTIDecvarTest::vartypes |
( |
| ) |
|
|
static |
Definition at line 87 of file ilQTIDecvarTest.php.
87 : array
88 {
89 class_exists(ilQTIDecvar::class);
90 return [
105 ['8', null],
106 ['', null],
107 ['Some random input.', null],
108 ];
109 }
References ilQTIDecvar\VARTYPE_BOOLEAN, ilQTIDecvar\VARTYPE_DECIMAL, ilQTIDecvar\VARTYPE_ENUMERATED, ilQTIDecvar\VARTYPE_INTEGER, ilQTIDecvar\VARTYPE_SCIENTIFIC, ilQTIDecvar\VARTYPE_SET, and ilQTIDecvar\VARTYPE_STRING.
The documentation for this class was generated from the following file: