ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestResultsToXMLTest Class Reference

Class ilTestResultsToXMLTest. More...

+ Inheritance diagram for ilTestResultsToXMLTest:
+ Collaboration diagram for ilTestResultsToXMLTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testIncludeRandomTestQuestionsEnabled ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestResultsToXML $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestResultsToXMLTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestResultsToXMLTest.php.

29 : void
30 {
31 global $DIC;
32 parent::setUp();
33
34 $this->testObj = new ilTestResultsToXML(
35 0,
36 $DIC['ilDB'],
37 $DIC['resource_storage'],
38 '',
39 false
40 );
41 }
global $DIC
Definition: shib_login.php:26

References $DIC.

◆ test_instantiateObject_shouldReturnInstance()

ilTestResultsToXMLTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 43 of file ilTestResultsToXMLTest.php.

43 : void
44 {
45 $this->assertInstanceOf(ilTestResultsToXML::class, $this->testObj);
46 }

◆ testIncludeRandomTestQuestionsEnabled()

ilTestResultsToXMLTest::testIncludeRandomTestQuestionsEnabled ( )

Definition at line 48 of file ilTestResultsToXMLTest.php.

48 : void
49 {
50 $this->testObj->setIncludeRandomTestQuestionsEnabled(false);
51 $this->assertFalse($this->testObj->isIncludeRandomTestQuestionsEnabled());
52
53 $this->testObj->setIncludeRandomTestQuestionsEnabled(true);
54 $this->assertTrue($this->testObj->isIncludeRandomTestQuestionsEnabled());
55 }

Field Documentation

◆ $testObj

ilTestResultsToXML ilTestResultsToXMLTest::$testObj
private

Definition at line 27 of file ilTestResultsToXMLTest.php.


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