ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilQTIResponseVarTest Class Reference
+ Inheritance diagram for ilQTIResponseVarTest:
+ Collaboration diagram for ilQTIResponseVarTest:

Public Member Functions

 testConstruct ()
 
 testSetGetVartype ()
 
 testSetGetCase (string $input, ?string $expected)
 
 testSetGetRespident ()
 
 testSetGetIndex ()
 
 testSetGetSetmatch (string $input, ?string $expected)
 
 testSetGetAreatype (string $input, ?string $expected)
 
 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 104 of file ilQTIResponseVarTest.php.

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

104  : array
105  {
106  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
107  return [
114  ];
115  }

◆ cases()

static ilQTIResponseVarTest::cases ( )
static

Definition at line 82 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\CASE_NO, and ilQTIResponseVar\CASE_YES.

82  : array
83  {
84  class_exists(ilQTIResponseVar::class); // Force autoload to define the constants.
85  return [
90  ];
91  }

◆ setMatches()

static ilQTIResponseVarTest::setMatches ( )
static

Definition at line 93 of file ilQTIResponseVarTest.php.

References ilQTIResponseVar\SETMATCH_EXACT, and ilQTIResponseVar\SETMATCH_PARTIAL.

93  : array
94  {
95  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
96  return [
101  ];
102  }

◆ 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 
)

Definition at line 68 of file ilQTIResponseVarTest.php.

68  : void
69  {
70  $instance = new ilQTIResponseVar('a');
71  $instance->setAreatype($input);
72  $this->assertEquals($expected, $instance->getAreatype());
73  }

◆ testSetGetCase()

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

Definition at line 38 of file ilQTIResponseVarTest.php.

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

◆ testSetGetContent()

ilQTIResponseVarTest::testSetGetContent ( )

Definition at line 75 of file ilQTIResponseVarTest.php.

75  : void
76  {
77  $instance = new ilQTIResponseVar('a');
78  $instance->setContent('Some input.');
79  $this->assertEquals('Some input.', $instance->getContent());
80  }

◆ testSetGetIndex()

ilQTIResponseVarTest::testSetGetIndex ( )

Definition at line 52 of file ilQTIResponseVarTest.php.

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

◆ testSetGetRespident()

ilQTIResponseVarTest::testSetGetRespident ( )

Definition at line 45 of file ilQTIResponseVarTest.php.

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

◆ testSetGetSetmatch()

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

Definition at line 60 of file ilQTIResponseVarTest.php.

60  : void
61  {
62  $instance = new ilQTIResponseVar('a');
63  $instance->setSetmatch($input);
64  $this->assertEquals($expected, $instance->getSetmatch());
65  }

◆ 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: