ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assAnswerBinaryStateImageTest.php
Go to the documentation of this file.
1<?php
2
27{
28 protected $backupGlobals = false;
29
30 protected function setUp(): void
31 {
32 chdir(__DIR__ . '/../../../../');
33 }
34
36 {
37 $instance = new ASS_AnswerBinaryStateImage();
38
39 $this->assertInstanceOf(ASS_AnswerBinaryStateImage::class, $instance);
40 }
41
42 public function test_setGetImage(): void
43 {
44 $instance = new ASS_AnswerBinaryStateImage();
45 $expected = 'image';
46 $instance->setImage($expected);
47 $actual = $instance->getImage();
48
49 $this->assertEquals($expected, $actual);
50 }
51}
Class for answers with a binary state indicator.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class assBaseTestCase.