ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilQTIResponseLabelTest Class Reference
+ Inheritance diagram for ilQTIResponseLabelTest:
+ Collaboration diagram for ilQTIResponseLabelTest:

Public Member Functions

 testConstruct ()
 
 testSetGetRshuffle (string $input, ?string $expected)
 rshuffles More...
 
 testSetGetRarea (string $input, ?string $expected)
 areas More...
 
 testSetGetRrange (string $input, ?string $expected)
 rranges More...
 
 testSetGetLabelrefid ()
 
 testSetGetIdent ()
 
 testSetGetMatchGroup ()
 
 testSetGetMatchMax ()
 
 testSetGetContent ()
 

Static Public Member Functions

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

Detailed Description

Definition at line 24 of file ilQTIResponseLabelTest.php.

Member Function Documentation

◆ areas()

static ilQTIResponseLabelTest::areas ( )
static

Definition at line 109 of file ilQTIResponseLabelTest.php.

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

109  : array
110  {
111  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
112  return [
119  ['Random input', null],
120  ];
121  }

◆ rranges()

static ilQTIResponseLabelTest::rranges ( )
static

Definition at line 123 of file ilQTIResponseLabelTest.php.

References ilQTIResponseLabel\RRANGE_EXACT, and ilQTIResponseLabel\RRANGE_RANGE.

123  : array
124  {
125  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
126  return [
131  ];
132  }

◆ rshuffles()

static ilQTIResponseLabelTest::rshuffles ( )
static

Definition at line 96 of file ilQTIResponseLabelTest.php.

References ilQTIResponseLabel\RSHUFFLE_NO, and ilQTIResponseLabel\RSHUFFLE_YES.

96  : array
97  {
98  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
99 
100  return [
105  ['Random input', null],
106  ];
107  }

◆ testConstruct()

ilQTIResponseLabelTest::testConstruct ( )

Definition at line 26 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetContent()

ilQTIResponseLabelTest::testSetGetContent ( )

Definition at line 89 of file ilQTIResponseLabelTest.php.

89  : void
90  {
91  $instance = new ilQTIResponseLabel();
92  $instance->setContent('Some input.');
93  $this->assertEquals('Some input.', $instance->getContent());
94  }

◆ testSetGetIdent()

ilQTIResponseLabelTest::testSetGetIdent ( )

Definition at line 68 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetLabelrefid()

ilQTIResponseLabelTest::testSetGetLabelrefid ( )

Definition at line 61 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetMatchGroup()

ilQTIResponseLabelTest::testSetGetMatchGroup ( )

Definition at line 75 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetMatchMax()

ilQTIResponseLabelTest::testSetGetMatchMax ( )

Definition at line 82 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetRarea()

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

areas

Definition at line 44 of file ilQTIResponseLabelTest.php.

44  : void
45  {
46  $instance = new ilQTIResponseLabel();
47  $instance->setRarea($input);
48  $this->assertEquals($expected, $instance->getRarea());
49  }

◆ testSetGetRrange()

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

rranges

Definition at line 54 of file ilQTIResponseLabelTest.php.

54  : void
55  {
56  $instance = new ilQTIResponseLabel();
57  $instance->setRrange($input);
58  $this->assertEquals($expected, $instance->getRrange());
59  }

◆ testSetGetRshuffle()

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

rshuffles

Definition at line 34 of file ilQTIResponseLabelTest.php.

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

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