17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
37 $this->assertInstanceOf(
'ASS_AnswerMultipleResponseImage', $instance);
43 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
45 $expected =
'c:\image.jpg';
48 $instance->setImage($expected);
49 $actual = $instance->getImage();
52 $this->assertEquals($expected, $actual);
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
test_instantiateObject_shouldReturnInstance()