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

Unit tests. More...

+ Inheritance diagram for assAnswerBinaryStateImageTest:
+ Collaboration diagram for assAnswerBinaryStateImageTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 test_setGetImage ()

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 assAnswerBinaryStateImageTest.php.

Member Function Documentation

assAnswerBinaryStateImageTest::setUp ( )
protected

Definition at line 15 of file assAnswerBinaryStateImageTest.php.

{
if (defined('ILIAS_PHPUNIT_CONTEXT'))
{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
else
{
chdir( dirname( __FILE__ ) );
chdir('../../../');
}
}
assAnswerBinaryStateImageTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 29 of file assAnswerBinaryStateImageTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
// Act
$instance = new ASS_AnswerBinaryStateImage();
$this->assertInstanceOf('ASS_AnswerBinaryStateImage', $instance);
}
assAnswerBinaryStateImageTest::test_setGetImage ( )

Definition at line 40 of file assAnswerBinaryStateImageTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
$instance = new ASS_AnswerBinaryStateImage();
$expected = 'image';
// Act
$instance->setImage($expected);
$actual = $instance->getImage();
$this->assertEquals($expected, $actual );
}

Field Documentation

assAnswerBinaryStateImageTest::$backupGlobals = FALSE
protected

Definition at line 13 of file assAnswerBinaryStateImageTest.php.


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