Unit tests.
More...
◆ setUp()
assAnswerBinaryStateImageTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerBinaryStateImageTest.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()
assAnswerBinaryStateImageTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 26 of file assAnswerBinaryStateImageTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
34 $this->assertInstanceOf(
'ASS_AnswerBinaryStateImage', $instance);
Class for answers with a binary state indicator.
◆ test_setGetImage()
assAnswerBinaryStateImageTest::test_setGetImage |
( |
| ) |
|
Definition at line 37 of file assAnswerBinaryStateImageTest.php.
40 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
44 $instance->setImage($expected);
45 $actual = $instance->getImage();
47 $this->assertEquals($expected, $actual);
Class for answers with a binary state indicator.
◆ $backupGlobals
assAnswerBinaryStateImageTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: