ILIAS  release_4-3 Revision
 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 31 of file assAnswerMatchingPairTest.php.

Member Function Documentation

assAnswerMatchingPairTest::setUp ( )
protected

Definition at line 35 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 49 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 76 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 106 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 91 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 61 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 33 of file assAnswerMatchingPairTest.php.


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