19declare(strict_types=1);
21use PHPUnit\Framework\TestCase;
27 $this->assertInstanceOf(ilQTIResponse::class,
new ilQTIResponse());
33 $instance->setIdent(
'Some input.');
34 $this->assertEquals(
'Some input.', $instance->getIdent());
37 #[\PHPUnit\Framework\Attributes\DataProvider('rtimings')]
41 $instance->setRtiming($input);
42 $this->assertEquals($expected, $instance->getRtiming());
45 #[\PHPUnit\Framework\Attributes\DataProvider('numtypes')]
49 $instance->setNumtype($input);
50 $this->assertEquals($expected, $instance->getNumtype());
55 class_exists(ilQTIResponse::class);
62 [
'Random input.',
null],
68 class_exists(ilQTIResponse::class);
76 [
'Random input.',
null],
testSetGetRtiming(string $input, ?string $expected)
testSetGetNumtype(string $input, ?string $expected)