17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
34 $this->assertInstanceOf(
'ASS_AnswerBinaryStateImage', $instance);
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.
test_instantiateObject_shouldReturnInstance()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'