ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilQTIResponseVarTest Class Reference
+ Inheritance diagram for ilQTIResponseVarTest:
+ Collaboration diagram for ilQTIResponseVarTest:

Public Member Functions

 testConstruct ()
 
 testSetGetVartype ()
 
 testSetGetCase (string $input, ?string $expected)
 cases More...
 
 testSetGetRespident ()
 
 testSetGetIndex ()
 
 testSetGetSetmatch (string $input, ?string $expected)
 setMatches More...
 
 testSetGetAreatype (string $input, ?string $expected)
 areaTypes More...
 
 testSetGetContent ()
 
 cases ()
 
 setMatches ()
 
 areaTypes ()
 

Detailed Description

Definition at line 24 of file ilQTIResponseVarTest.php.

Member Function Documentation

◆ areaTypes()

ilQTIResponseVarTest::areaTypes ( )

Definition at line 111 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\AREATYPE_BOUNDED, ilQTIResponseVar\AREATYPE_ELLIPSE, and ilQTIResponseVar\AREATYPE_RECTANGLE.

111  : array
112  {
113  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
114  return [
121  ];
122  }

◆ cases()

ilQTIResponseVarTest::cases ( )

Definition at line 89 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\CASE_NO, and ilQTIResponseVar\CASE_YES.

89  : array
90  {
91  class_exists(ilQTIResponseVar::class); // Force autoload to define the constants.
92  return [
97  ];
98  }

◆ setMatches()

ilQTIResponseVarTest::setMatches ( )

Definition at line 100 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\SETMATCH_EXACT, and ilQTIResponseVar\SETMATCH_PARTIAL.

100  : array
101  {
102  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
103  return [
108  ];
109  }

◆ testConstruct()

ilQTIResponseVarTest::testConstruct ( )

Definition at line 26 of file ilQTIResponseVarTest.php.

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

◆ testSetGetAreatype()

ilQTIResponseVarTest::testSetGetAreatype ( string  $input,
?string  $expected 
)

areaTypes

Definition at line 75 of file ilQTIResponseVarTest.php.

75  : void
76  {
77  $instance = new ilQTIResponseVar('a');
78  $instance->setAreatype($input);
79  $this->assertEquals($expected, $instance->getAreatype());
80  }

◆ testSetGetCase()

ilQTIResponseVarTest::testSetGetCase ( string  $input,
?string  $expected 
)

cases

Definition at line 41 of file ilQTIResponseVarTest.php.

41  : void
42  {
43  $instance = new ilQTIResponseVar('a');
44  $instance->setCase($input);
45  $this->assertEquals($expected, $instance->getCase());
46  }

◆ testSetGetContent()

ilQTIResponseVarTest::testSetGetContent ( )

Definition at line 82 of file ilQTIResponseVarTest.php.

82  : void
83  {
84  $instance = new ilQTIResponseVar('a');
85  $instance->setContent('Some input.');
86  $this->assertEquals('Some input.', $instance->getContent());
87  }

◆ testSetGetIndex()

ilQTIResponseVarTest::testSetGetIndex ( )

Definition at line 55 of file ilQTIResponseVarTest.php.

55  : void
56  {
57  $instance = new ilQTIResponseVar('a');
58  $instance->setIndex('Some input.');
59  $this->assertEquals('Some input.', $instance->getIndex());
60  }

◆ testSetGetRespident()

ilQTIResponseVarTest::testSetGetRespident ( )

Definition at line 48 of file ilQTIResponseVarTest.php.

48  : void
49  {
50  $instance = new ilQTIResponseVar('a');
51  $instance->setRespident('Some input.');
52  $this->assertEquals('Some input.', $instance->getRespident());
53  }

◆ testSetGetSetmatch()

ilQTIResponseVarTest::testSetGetSetmatch ( string  $input,
?string  $expected 
)

setMatches

Definition at line 65 of file ilQTIResponseVarTest.php.

65  : void
66  {
67  $instance = new ilQTIResponseVar('a');
68  $instance->setSetmatch($input);
69  $this->assertEquals($expected, $instance->getSetmatch());
70  }

◆ testSetGetVartype()

ilQTIResponseVarTest::testSetGetVartype ( )

Definition at line 31 of file ilQTIResponseVarTest.php.

31  : void
32  {
33  $instance = new ilQTIResponseVar('a');
34  $instance->setVartype('Some input.');
35  $this->assertEquals('Some input.', $instance->getVartype());
36  }

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