Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerImagemapTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 35 of file assAnswerImagemapTest.php.
{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerImagemapTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 49 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$this->assertInstanceOf('ASS_AnswerImagemap', $instance);
}
assAnswerImagemapTest::test_setGetArea |
( |
| ) |
|
Definition at line 76 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$expected = "12345";
$instance->setArea($expected);
$actual = $instance->getArea();
$this->assertEquals($expected, $actual);
}
assAnswerImagemapTest::test_setGetCoords |
( |
| ) |
|
Definition at line 61 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$expected = "12345";
$instance->setCoords($expected);
$actual = $instance->getCoords();
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerImagemapTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: