ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
assAnswerMultipleResponseImageTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for assAnswerMultipleResponseImageTest:
+ Collaboration diagram for assAnswerMultipleResponseImageTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 test_setGetImage ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 getIRSSMock ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from assBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Unit tests

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

\

Definition at line 26 of file assAnswerMultipleResponseImageTest.php.

Member Function Documentation

◆ setUp()

assAnswerMultipleResponseImageTest::setUp ( )
protected

Definition at line 30 of file assAnswerMultipleResponseImageTest.php.

30  : void
31  {
32  chdir(__DIR__ . '/../../../../');
33  }

◆ test_instantiateObject_shouldReturnInstance()

assAnswerMultipleResponseImageTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 35 of file assAnswerMultipleResponseImageTest.php.

35  : void
36  {
37  $instance = new ASS_AnswerMultipleResponseImage();
38 
39  $this->assertInstanceOf(ASS_AnswerMultipleResponseImage::class, $instance);
40  }
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file.

◆ test_setGetImage()

assAnswerMultipleResponseImageTest::test_setGetImage ( )

Definition at line 42 of file assAnswerMultipleResponseImageTest.php.

42  : void
43  {
44  $instance = new ASS_AnswerMultipleResponseImage();
45  $expected = 'c:\image.jpg';
46 
47  $instance->setImage($expected);
48  $actual = $instance->getImage();
49 
50  $this->assertEquals($expected, $actual);
51  }
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file.

Field Documentation

◆ $backupGlobals

assAnswerMultipleResponseImageTest::$backupGlobals = false
protected

Definition at line 28 of file assAnswerMultipleResponseImageTest.php.


The documentation for this class was generated from the following file: