Unit tests.
More...
◆ setUp()
assAnswerMultipleResponseImageTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMultipleResponseImageTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assAnswerMultipleResponseImageTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 26 of file assAnswerMultipleResponseImageTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
34 $this->assertInstanceOf(
'ASS_AnswerMultipleResponseImage', $instance);
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 37 of file assAnswerMultipleResponseImageTest.php.
40 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
42 $expected =
'c:\image.jpg';
45 $instance->setImage($expected);
46 $actual = $instance->getImage();
49 $this->assertEquals($expected, $actual);
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file.
◆ $backupGlobals
assAnswerMultipleResponseImageTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: