ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
assAnswerMatchingTermTest Class Reference

Unit tests. More...

+ Inheritance diagram for assAnswerMatchingTermTest:
+ Collaboration diagram for assAnswerMatchingTermTest:

Public Member Functions

 test_instantiateObjectSimple ()
 test_setGetText ()
 test_setGetPicture ()
 test_getUnsetPicture ()
 test_setGetIdentifier ()
 test_setGetHokum ()

Protected Member Functions

 setUp ()

Protected Attributes

 $backupGlobals = FALSE

Detailed Description

Unit tests.

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

Definition at line 11 of file assAnswerMatchingTermTest.php.

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.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$instance = new assAnswerMatchingTerm();
$expected = null;
// Act
$actual = $instance->picture;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_instantiateObjectSimple ( )

Definition at line 29 of file assAnswerMatchingTermTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
// Act
$instance = new assAnswerMatchingTerm();
// Assert
$this->assertInstanceOf('assAnswerMatchingTerm', $instance);
}
assAnswerMatchingTermTest::test_setGetHokum ( )

Definition at line 100 of file assAnswerMatchingTermTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$instance = new assAnswerMatchingTerm();
$expected = null;
// Act
$instance->hokum = 'Hokum Value';
$actual = $instance->hokum;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_setGetIdentifier ( )

Definition at line 85 of file assAnswerMatchingTermTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$instance = new assAnswerMatchingTerm();
$expected = 12345;
// Act
$instance->identifier = $expected;
$actual = $instance->identifier;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_setGetPicture ( )

Definition at line 56 of file assAnswerMatchingTermTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$instance = new assAnswerMatchingTerm();
$expected = 'path/to/picture?';
// Act
$instance->picture = $expected;
$actual = $instance->picture;
// Assert
$this->assertEquals($expected, $actual);
}
assAnswerMatchingTermTest::test_setGetText ( )

Definition at line 41 of file assAnswerMatchingTermTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
$instance = new assAnswerMatchingTerm();
$expected = 'Text';
// Act
$instance->text = $expected;
$actual = $instance->text;
// Assert
$this->assertEquals($expected, $actual);
}

Field Documentation

assAnswerMatchingTermTest::$backupGlobals = FALSE
protected

Definition at line 13 of file assAnswerMatchingTermTest.php.


The documentation for this class was generated from the following file: