ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
assAnswerMatchingDefinitionTest Class Reference

Unit tests. More...

+ Inheritance diagram for assAnswerMatchingDefinitionTest:
+ Collaboration diagram for assAnswerMatchingDefinitionTest:

Public Member Functions

 test_instantiateObjectSimple ()
 

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

Member Function Documentation

◆ setUp()

assAnswerMatchingDefinitionTest::setUp ( )
protected

Definition at line 15 of file assAnswerMatchingDefinitionTest.php.

References defined.

16  {
17  if (defined('ILIAS_PHPUNIT_CONTEXT')) {
18  include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
19  ilUnitUtil::performInitialisation();
20  } else {
21  chdir(dirname(__FILE__));
22  chdir('../../../');
23  }
24  }
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

◆ test_instantiateObjectSimple()

assAnswerMatchingDefinitionTest::test_instantiateObjectSimple ( )

Definition at line 26 of file assAnswerMatchingDefinitionTest.php.

27  {
28  // Arrange
29  require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingDefinition.php';
30 
31  // Act
32  $instance = new assAnswerMatchingDefinition();
33 
34  // Assert
35  $this->assertInstanceOf('assAnswerMatchingDefinition', $instance);
36  }
Class for matching question definitions.

Field Documentation

◆ $backupGlobals

assAnswerMatchingDefinitionTest::$backupGlobals = false
protected

Definition at line 13 of file assAnswerMatchingDefinitionTest.php.


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