ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilQTIRespconditionTest Class Reference
+ Inheritance diagram for ilQTIRespconditionTest:
+ Collaboration diagram for ilQTIRespconditionTest:

Public Member Functions

 testConstruct ()
 
 testSetGetContinue (string $input, ?string $expected)
 
 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 52 of file ilQTIRespconditionTest.php.

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

52  : array
53  {
54  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
55  return [
60  ['Random input', null],
61  ];
62  }
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 45 of file ilQTIRespconditionTest.php.

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

◆ testSetGetContinue()

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

Definition at line 31 of file ilQTIRespconditionTest.php.

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

◆ testSetGetTitle()

ilQTIRespconditionTest::testSetGetTitle ( )

Definition at line 38 of file ilQTIRespconditionTest.php.

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

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