Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
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.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$this->assertInstanceOf('assAnswerMatchingPair', $instance);
}
assAnswerMatchingPairTest::test_setGetDefinition |
( |
| ) |
|
Definition at line 56 of file assAnswerMatchingPairTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$expected = 'Definition';
$instance->definition = $expected;
$actual = $instance->definition;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingPairTest::test_setGetHokum |
( |
| ) |
|
Definition at line 86 of file assAnswerMatchingPairTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$expected = null;
$instance->hokum = 'Hokum Value';
$actual = $instance->hokum;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingPairTest::test_setGetPoints |
( |
| ) |
|
Definition at line 71 of file assAnswerMatchingPairTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$expected = 'Definition';
$instance->points = $expected;
$actual = $instance->points;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingPairTest::test_setGetTerm |
( |
| ) |
|
Definition at line 41 of file assAnswerMatchingPairTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
$expected = 'Term';
$instance->term = $expected;
$actual = $instance->term;
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerMatchingPairTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: