Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerMultipleResponseImageTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMultipleResponseImageTest.php.
{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerMultipleResponseImageTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 29 of file assAnswerMultipleResponseImageTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
$this->assertInstanceOf('ASS_AnswerMultipleResponseImage', $instance);
}
assAnswerMultipleResponseImageTest::test_setGetImage |
( |
| ) |
|
Definition at line 40 of file assAnswerMultipleResponseImageTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
$expected = 'c:\image.jpg';
$instance->setImage($expected);
$actual = $instance->getImage();
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerMultipleResponseImageTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: