Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerImagemapTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 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 29 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$this->assertInstanceOf('ASS_AnswerImagemap', $instance);
}
assAnswerImagemapTest::test_setGetArea |
( |
| ) |
|
Definition at line 56 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 41 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$expected = "12345";
$instance->setCoords($expected);
$actual = $instance->getCoords();
$this->assertEquals($expected, $actual);
}
assAnswerImagemapTest::test_setGetPointsUnchecked |
( |
| ) |
|
Definition at line 71 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$expected = "12345";
$instance->setPointsUnchecked($expected);
$actual = $instance->getPointsUnchecked();
$this->assertEquals($expected, $actual);
}
assAnswerImagemapTest::test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints |
( |
| ) |
|
Definition at line 86 of file assAnswerImagemapTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$expected = 0.0;
$instance->setPointsUnchecked('Günther');
$actual = $instance->getPointsUnchecked();
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerImagemapTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: