Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerBinaryStateImageTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 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 29 of file assAnswerBinaryStateImageTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
$this->assertInstanceOf('ASS_AnswerBinaryStateImage', $instance);
}
assAnswerBinaryStateImageTest::test_setGetImage |
( |
| ) |
|
Definition at line 40 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: