ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

52 : array
53 {
54 class_exists(ilQTIRespcondition::class); // Force autoload to define the constants.
55 return [
60 ['Random input', null],
61 ];
62 }

References ilQTIRespcondition\CONTINUE_NO, and ilQTIRespcondition\CONTINUE_YES.

◆ 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: