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

Unit tests. More...

+ Inheritance diagram for assAnswerMultipleResponseImageTest:
+ Collaboration diagram for assAnswerMultipleResponseImageTest:

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

Member Function Documentation

assAnswerMultipleResponseImageTest::setUp ( )
protected

Definition at line 15 of file assAnswerMultipleResponseImageTest.php.

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

Definition at line 29 of file assAnswerMultipleResponseImageTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
// Act
$this->assertInstanceOf('ASS_AnswerMultipleResponseImage', $instance);
}
assAnswerMultipleResponseImageTest::test_setGetImage ( )

Definition at line 40 of file assAnswerMultipleResponseImageTest.php.

{
// Arrange
require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponseImage.php';
$expected = 'c:\image.jpg';
// Act
$instance->setImage($expected);
$actual = $instance->getImage();
// Assert
$this->assertEquals($expected, $actual);
}

Field Documentation

assAnswerMultipleResponseImageTest::$backupGlobals = FALSE
protected

Definition at line 13 of file assAnswerMultipleResponseImageTest.php.


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