Unit tests.
More...
Protected Member Functions |
| setUp () |
Detailed Description
Member Function Documentation
assAnswerMatchingTermTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 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 71 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 29 of file assAnswerMatchingTermTest.php.
{
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$this->assertInstanceOf('assAnswerMatchingTerm', $instance);
}
assAnswerMatchingTermTest::test_setGetHokum |
( |
| ) |
|
Definition at line 100 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 85 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 56 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 41 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: