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