ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilQTIResponseLabelTest Class Reference
+ Inheritance diagram for ilQTIResponseLabelTest:
+ Collaboration diagram for ilQTIResponseLabelTest:

Public Member Functions

 testConstruct ()
 
 testSetGetRshuffle (string $input, ?string $expected)
 
 testSetGetRarea (string $input, ?string $expected)
 
 testSetGetRrange (string $input, ?string $expected)
 
 testSetGetLabelrefid ()
 
 testSetGetIdent ()
 
 testSetGetMatchGroup ()
 
 testSetGetMatchMax ()
 
 testSetGetContent ()
 

Static Public Member Functions

static rshuffles ()
 
static areas ()
 
static rranges ()
 

Detailed Description

Definition at line 23 of file ilQTIResponseLabelTest.php.

Member Function Documentation

◆ areas()

static ilQTIResponseLabelTest::areas ( )
static

Definition at line 102 of file ilQTIResponseLabelTest.php.

References null, ilQTIResponseLabel\RAREA_BOUNDED, ilQTIResponseLabel\RAREA_ELLIPSE, and ilQTIResponseLabel\RAREA_RECTANGLE.

102  : array
103  {
104  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
105  return [
112  ['Random input', null],
113  ];
114  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ rranges()

static ilQTIResponseLabelTest::rranges ( )
static

Definition at line 116 of file ilQTIResponseLabelTest.php.

References ilQTIResponseLabel\RRANGE_EXACT, and ilQTIResponseLabel\RRANGE_RANGE.

116  : array
117  {
118  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
119  return [
124  ];
125  }

◆ rshuffles()

static ilQTIResponseLabelTest::rshuffles ( )
static

Definition at line 89 of file ilQTIResponseLabelTest.php.

References null, ilQTIResponseLabel\RSHUFFLE_NO, and ilQTIResponseLabel\RSHUFFLE_YES.

89  : array
90  {
91  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
92 
93  return [
98  ['Random input', null],
99  ];
100  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ testConstruct()

ilQTIResponseLabelTest::testConstruct ( )

Definition at line 25 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetContent()

ilQTIResponseLabelTest::testSetGetContent ( )

Definition at line 82 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetIdent()

ilQTIResponseLabelTest::testSetGetIdent ( )

Definition at line 61 of file ilQTIResponseLabelTest.php.

61  : void
62  {
63  $instance = new ilQTIResponseLabel();
64  $instance->setIdent('Some input.');
65  $this->assertEquals('Some input.', $instance->getIdent());
66  }

◆ testSetGetLabelrefid()

ilQTIResponseLabelTest::testSetGetLabelrefid ( )

Definition at line 54 of file ilQTIResponseLabelTest.php.

54  : void
55  {
56  $instance = new ilQTIResponseLabel();
57  $instance->setLabelrefid('Some input.');
58  $this->assertEquals('Some input.', $instance->getLabelrefid());
59  }

◆ testSetGetMatchGroup()

ilQTIResponseLabelTest::testSetGetMatchGroup ( )

Definition at line 68 of file ilQTIResponseLabelTest.php.

68  : void
69  {
70  $instance = new ilQTIResponseLabel();
71  $instance->setMatchGroup('Some input.');
72  $this->assertEquals('Some input.', $instance->getMatchGroup());
73  }

◆ testSetGetMatchMax()

ilQTIResponseLabelTest::testSetGetMatchMax ( )

Definition at line 75 of file ilQTIResponseLabelTest.php.

75  : void
76  {
77  $instance = new ilQTIResponseLabel();
78  $instance->setMatchMax('Some input.');
79  $this->assertEquals('Some input.', $instance->getMatchMax());
80  }

◆ testSetGetRarea()

ilQTIResponseLabelTest::testSetGetRarea ( string  $input,
?string  $expected 
)

Definition at line 39 of file ilQTIResponseLabelTest.php.

39  : void
40  {
41  $instance = new ilQTIResponseLabel();
42  $instance->setRarea($input);
43  $this->assertEquals($expected, $instance->getRarea());
44  }

◆ testSetGetRrange()

ilQTIResponseLabelTest::testSetGetRrange ( string  $input,
?string  $expected 
)

Definition at line 47 of file ilQTIResponseLabelTest.php.

47  : void
48  {
49  $instance = new ilQTIResponseLabel();
50  $instance->setRrange($input);
51  $this->assertEquals($expected, $instance->getRrange());
52  }

◆ testSetGetRshuffle()

ilQTIResponseLabelTest::testSetGetRshuffle ( string  $input,
?string  $expected 
)

Definition at line 31 of file ilQTIResponseLabelTest.php.

31  : void
32  {
33  $instance = new ilQTIResponseLabel();
34  $instance->setRshuffle($input);
35  $this->assertEquals($expected, $instance->getRshuffle());
36  }

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