ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
assAnswerMatchingPairTest Class Reference

Unit tests. More...

+ Inheritance diagram for assAnswerMatchingPairTest:
+ Collaboration diagram for assAnswerMatchingPairTest:

Public Member Functions

 test_instantiateObjectSimple ()
 test_setGetTerm ()
 test_setGetDefinition ()
 test_setGetPoints ()
 test_setGetHokum ()

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 11 of file assAnswerMatchingPairTest.php.

Member Function Documentation

assAnswerMatchingPairTest::setUp ( )
protected

Definition at line 15 of file assAnswerMatchingPairTest.php.

{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerMatchingPairTest::test_instantiateObjectSimple ( )

Definition at line 29 of file assAnswerMatchingPairTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
// Act
$instance = new assAnswerMatchingPair();
// Assert
$this->assertInstanceOf('assAnswerMatchingPair', $instance);
}
assAnswerMatchingPairTest::test_setGetDefinition ( )

Definition at line 56 of file assAnswerMatchingPairTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$instance = new assAnswerMatchingPair();
$expected = 'Definition';
// Act
$instance->definition = $expected;
$actual = $instance->definition;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingPairTest::test_setGetHokum ( )

Definition at line 86 of file assAnswerMatchingPairTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$instance = new assAnswerMatchingPair();
$expected = null;
// Act
$instance->hokum = 'Hokum Value';
$actual = $instance->hokum;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingPairTest::test_setGetPoints ( )

Definition at line 71 of file assAnswerMatchingPairTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$instance = new assAnswerMatchingPair();
$expected = 'Definition';
// Act
$instance->points = $expected;
$actual = $instance->points;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingPairTest::test_setGetTerm ( )

Definition at line 41 of file assAnswerMatchingPairTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$instance = new assAnswerMatchingPair();
$expected = 'Term';
// Act
$instance->term = $expected;
$actual = $instance->term;
// Assert
$this->assertEquals($expected, $actual);
}

Field Documentation

assAnswerMatchingPairTest::$backupGlobals = FALSE
protected

Definition at line 13 of file assAnswerMatchingPairTest.php.


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