ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 ()
 

Static Public Member Functions

static cases ()
 
static setMatches ()
 
static areaTypes ()
 

Detailed Description

Definition at line 23 of file ilQTIResponseVarTest.php.

Member Function Documentation

◆ areaTypes()

static ilQTIResponseVarTest::areaTypes ( )
static

Definition at line 110 of file ilQTIResponseVarTest.php.

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

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

◆ cases()

static ilQTIResponseVarTest::cases ( )
static

Definition at line 88 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\CASE_NO, and ilQTIResponseVar\CASE_YES.

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

◆ setMatches()

static ilQTIResponseVarTest::setMatches ( )
static

Definition at line 99 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\SETMATCH_EXACT, and ilQTIResponseVar\SETMATCH_PARTIAL.

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

◆ testConstruct()

ilQTIResponseVarTest::testConstruct ( )

Definition at line 25 of file ilQTIResponseVarTest.php.

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

◆ testSetGetAreatype()

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

areaTypes

Definition at line 74 of file ilQTIResponseVarTest.php.

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

◆ testSetGetCase()

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

cases

Definition at line 40 of file ilQTIResponseVarTest.php.

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

◆ testSetGetContent()

ilQTIResponseVarTest::testSetGetContent ( )

Definition at line 81 of file ilQTIResponseVarTest.php.

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

◆ testSetGetIndex()

ilQTIResponseVarTest::testSetGetIndex ( )

Definition at line 54 of file ilQTIResponseVarTest.php.

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

◆ testSetGetRespident()

ilQTIResponseVarTest::testSetGetRespident ( )

Definition at line 47 of file ilQTIResponseVarTest.php.

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

◆ testSetGetSetmatch()

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

setMatches

Definition at line 64 of file ilQTIResponseVarTest.php.

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

◆ testSetGetVartype()

ilQTIResponseVarTest::testSetGetVartype ( )

Definition at line 30 of file ilQTIResponseVarTest.php.

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

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