ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilQTIRespconditionTest Class Reference
+ Inheritance diagram for ilQTIRespconditionTest:
+ Collaboration diagram for ilQTIRespconditionTest:

Public Member Functions

 testConstruct ()
 
 testSetGetContinue (string $input, ?string $expected)
 continues More...
 
 testSetGetTitle ()
 
 testSetGetComment ()
 

Static Public Member Functions

static continues ()
 

Detailed Description

Definition at line 23 of file ilQTIRespconditionTest.php.

Member Function Documentation

◆ continues()

static ilQTIRespconditionTest::continues ( )
static

Definition at line 54 of file ilQTIRespconditionTest.php.

References ilQTIRespcondition\CONTINUE_NO, ilQTIRespcondition\CONTINUE_YES, and null.

54  : array
55  {
56  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
57  return [
62  ['Random input', null],
63  ];
64  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ testConstruct()

ilQTIRespconditionTest::testConstruct ( )

Definition at line 25 of file ilQTIRespconditionTest.php.

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

◆ testSetGetComment()

ilQTIRespconditionTest::testSetGetComment ( )

Definition at line 47 of file ilQTIRespconditionTest.php.

47  : void
48  {
49  $instance = new ilQTIRespcondition();
50  $instance->setComment('Some input.');
51  $this->assertEquals('Some input.', $instance->getComment());
52  }

◆ testSetGetContinue()

ilQTIRespconditionTest::testSetGetContinue ( string  $input,
?string  $expected 
)

continues

Definition at line 33 of file ilQTIRespconditionTest.php.

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

◆ testSetGetTitle()

ilQTIRespconditionTest::testSetGetTitle ( )

Definition at line 40 of file ilQTIRespconditionTest.php.

40  : void
41  {
42  $instance = new ilQTIRespcondition();
43  $instance->setTitle('Some input.');
44  $this->assertEquals('Some input.', $instance->getTitle());
45  }

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