ILIAS  release_8 Revision v8.24
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(dirname(__FILE__));
33 chdir('../../../');
34 }
35
37 {
38 // Arrange
39 require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
40
41 // Act
42 $instance = new ASS_AnswerBinaryStateImage();
43
44 $this->assertInstanceOf('ASS_AnswerBinaryStateImage', $instance);
45 }
46
47 public function test_setGetImage(): void
48 {
49 // Arrange
50 require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
51 $instance = new ASS_AnswerBinaryStateImage();
52 $expected = 'image';
53 // Act
54 $instance->setImage($expected);
55 $actual = $instance->getImage();
56
57 $this->assertEquals($expected, $actual);
58 }
59}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class assBaseTestCase.