Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerMultipleResponseTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMultipleResponseTest.php.
{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerMultipleResponseTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 29 of file assAnswerMultipleResponseTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
$this->assertInstanceOf('ASS_AnswerMultipleResponse', $instance);
}
assAnswerMultipleResponseTest::test_setGetPointsChecked |
( |
| ) |
|
Definition at line 71 of file assAnswerMultipleResponseTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
$expected = 2;
$instance->setPointsChecked($expected);
$actual = $instance->getPointsChecked();
$this->assertEquals($expected, $actual);
}
assAnswerMultipleResponseTest::test_setGetPointsUnchecked |
( |
| ) |
|
Definition at line 41 of file assAnswerMultipleResponseTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
$expected = 1;
$instance->setPointsUnchecked($expected);
$actual = $instance->getPointsUnchecked();
$this->assertEquals($expected, $actual);
}
assAnswerMultipleResponseTest::test_setGetPointsUnchecked_InvalidPointsBecomeZero |
( |
| ) |
|
Definition at line 56 of file assAnswerMultipleResponseTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
$expected = 0;
$instance->setPointsUnchecked('Günther');
$actual = $instance->getPointsUnchecked();
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerMultipleResponseTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: