Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerMultipleResponseTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 35 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 49 of file assAnswerMultipleResponseTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
$this->assertInstanceOf('ASS_AnswerMultipleResponse', $instance);
}
assAnswerMultipleResponseTest::test_setGetPointsChecked |
( |
| ) |
|
Definition at line 91 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 61 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 76 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: