ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 23 of file ilQTIResponseLabelTest.php.

Member Function Documentation

◆ areas()

static ilQTIResponseLabelTest::areas ( )
static

Definition at line 108 of file ilQTIResponseLabelTest.php.

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

108  : array
109  {
110  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
111  return [
118  ['Random input', null],
119  ];
120  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ rranges()

static ilQTIResponseLabelTest::rranges ( )
static

Definition at line 122 of file ilQTIResponseLabelTest.php.

References ilQTIResponseLabel\RRANGE_EXACT, and ilQTIResponseLabel\RRANGE_RANGE.

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

◆ rshuffles()

static ilQTIResponseLabelTest::rshuffles ( )
static

Definition at line 95 of file ilQTIResponseLabelTest.php.

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

95  : array
96  {
97  class_exists(ilQTIResponseLabel::class); // Force autoload to define the constants.
98 
99  return [
104  ['Random input', null],
105  ];
106  }
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 88 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetIdent()

ilQTIResponseLabelTest::testSetGetIdent ( )

Definition at line 67 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetLabelrefid()

ilQTIResponseLabelTest::testSetGetLabelrefid ( )

Definition at line 60 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetMatchGroup()

ilQTIResponseLabelTest::testSetGetMatchGroup ( )

Definition at line 74 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetMatchMax()

ilQTIResponseLabelTest::testSetGetMatchMax ( )

Definition at line 81 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetRarea()

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

areas

Definition at line 43 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetRrange()

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

rranges

Definition at line 53 of file ilQTIResponseLabelTest.php.

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

◆ testSetGetRshuffle()

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

rshuffles

Definition at line 33 of file ilQTIResponseLabelTest.php.

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

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