ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
assAnswerImagemapTest Class Reference

Unit tests. More...

+ Inheritance diagram for assAnswerImagemapTest:
+ Collaboration diagram for assAnswerImagemapTest:

Public Member Functions

 test_instantiateObjectSimple ()
 test_setGetCoords ()
 test_setGetArea ()

Protected Member Functions

 setUp ()

Protected Attributes

 $backupGlobals = FALSE

Detailed Description

Unit tests.

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

Definition at line 31 of file assAnswerImagemapTest.php.

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.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
// Act
$instance = new ASS_AnswerImagemap();
// Assert
$this->assertInstanceOf('ASS_AnswerImagemap', $instance);
}
assAnswerImagemapTest::test_setGetArea ( )

Definition at line 76 of file assAnswerImagemapTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$instance = new ASS_AnswerImagemap();
// Act
$expected = "12345";
$instance->setArea($expected);
$actual = $instance->getArea();
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerImagemapTest::test_setGetCoords ( )

Definition at line 61 of file assAnswerImagemapTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
$instance = new ASS_AnswerImagemap();
// Act
$expected = "12345";
$instance->setCoords($expected);
$actual = $instance->getCoords();
// Assert
$this->assertEquals($expected, $actual);
}

Field Documentation

assAnswerImagemapTest::$backupGlobals = FALSE
protected

Definition at line 33 of file assAnswerImagemapTest.php.


The documentation for this class was generated from the following file: