ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables 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 ()
 
 continues ()
 

Detailed Description

Definition at line 24 of file ilQTIRespconditionTest.php.

Member Function Documentation

◆ continues()

ilQTIRespconditionTest::continues ( )

Definition at line 55 of file ilQTIRespconditionTest.php.

References ilQTIRespcondition\CONTINUE_NO, and ilQTIRespcondition\CONTINUE_YES.

55  : array
56  {
57  class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
58  return [
63  ['Random input', null],
64  ];
65  }

◆ testConstruct()

ilQTIRespconditionTest::testConstruct ( )

Definition at line 26 of file ilQTIRespconditionTest.php.

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

◆ testSetGetComment()

ilQTIRespconditionTest::testSetGetComment ( )

Definition at line 48 of file ilQTIRespconditionTest.php.

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

◆ testSetGetContinue()

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

continues

Definition at line 34 of file ilQTIRespconditionTest.php.

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

◆ testSetGetTitle()

ilQTIRespconditionTest::testSetGetTitle ( )

Definition at line 41 of file ilQTIRespconditionTest.php.

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

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