Unit tests for assAnswerErrorTextTest.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerErrorTextTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 35 of file assAnswerErrorTextTest.php.
{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerErrorTextTest::test_instantiateObjectFull |
( |
| ) |
|
Definition at line 62 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
'errortext',
'correcttext',
1
);
$this->assertTrue(TRUE);
}
assAnswerErrorTextTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 49 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$this->assertTrue(TRUE);
}
assAnswerErrorTextTest::test_setGetPoints_valid |
( |
| ) |
|
Definition at line 78 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$expected = 0.01;
$instance->points = $expected;
$actual = $instance->points;
$this->assertEquals($actual, $expected);
}
assAnswerErrorTextTest::test_setGetTextCorrect |
( |
| ) |
|
Definition at line 108 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$expected = 'Correct text';
$instance->text_correct = $expected;
$actual = $instance->text_correct;
$this->assertEquals($actual, $expected);
}
assAnswerErrorTextTest::test_setGetTextWrong_valid |
( |
| ) |
|
Definition at line 123 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$expected = 'Errortext';
$instance->text_wrong = $expected;
$actual = $instance->text_wrong;
$this->assertEquals($actual, $expected);
}
assAnswerErrorTextTest::test_setGetUnknown |
( |
| ) |
|
Definition at line 153 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$expected = null;
$instance->undefined123 = 'No expectations';
$actual = $instance->undefined123;
$this->assertEquals($expected, $actual);
}
assAnswerErrorTextTest::test_setPoints_invalid |
( |
| ) |
|
Definition at line 94 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$expected = 'hokum';
$instance->points = $expected;
$actual = $instance->points;
$this->assertEquals($expected, $actual);
}
assAnswerErrorTextTest::test_setTextWrong_invalid |
( |
| ) |
|
Definition at line 138 of file assAnswerErrorTextTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
$expected = '';
$instance->text_wrong = $expected;
$actual = $instance->text_wrong;
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerErrorTextTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: