ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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  // Act
39  $instance = new ASS_AnswerBinaryStateImage();
40 
41  $this->assertInstanceOf('ASS_AnswerBinaryStateImage', $instance);
42  }
43 
44  public function test_setGetImage(): void
45  {
46  $instance = new ASS_AnswerBinaryStateImage();
47  $expected = 'image';
48  // Act
49  $instance->setImage($expected);
50  $actual = $instance->getImage();
51 
52  $this->assertEquals($expected, $actual);
53  }
54 }
Class for answers with a binary state indicator.
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...