Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerMatchingTermTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 35 of file assAnswerMatchingTermTest.php.
{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerMatchingTermTest::test_getUnsetPicture |
( |
| ) |
|
Definition at line 91 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$expected = null;
$actual = $instance->picture;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 49 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$this->assertInstanceOf('assAnswerMatchingTerm', $instance);
}
assAnswerMatchingTermTest::test_setGetHokum |
( |
| ) |
|
Definition at line 120 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$expected = null;
$instance->hokum = 'Hokum Value';
$actual = $instance->hokum;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_setGetIdentifier |
( |
| ) |
|
Definition at line 105 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$expected = 12345;
$instance->identifier = $expected;
$actual = $instance->identifier;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_setGetPicture |
( |
| ) |
|
Definition at line 76 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$expected = 'path/to/picture?';
$instance->picture = $expected;
$actual = $instance->picture;
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_setGetText |
( |
| ) |
|
Definition at line 61 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$expected = 'Text';
$instance->text = $expected;
$actual = $instance->text;
$this->assertEquals($expected, $actual);
}
Field Documentation
assAnswerMatchingTermTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: