ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilStatisticsTest Class Reference

Class ilStatisticsTest. More...

+ Inheritance diagram for ilStatisticsTest:
+ Collaboration diagram for ilStatisticsTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testData ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilStatistics $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Class ilStatisticsTest.

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilStatisticsTest.php.

Member Function Documentation

◆ setUp()

ilStatisticsTest::setUp ( )
protected

Definition at line 29 of file ilStatisticsTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilStatistics();
34  }
Constants for the handling of elements which are not a number.

◆ test_instantiateObject_shouldReturnInstance()

ilStatisticsTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilStatisticsTest.php.

36  : void
37  {
38  $this->assertInstanceOf(ilStatistics::class, $this->testObj);
39  }

◆ testData()

ilStatisticsTest::testData ( )

Definition at line 41 of file ilStatisticsTest.php.

41  : void
42  {
43  $input = [
44  "1250",
45  "125125",
46  1518,
47  "abasfki",
48  -1251
49  ];
50  $this->testObj->setData($input);
51 
52  $expected1 = [
53  -1251,
54  "1250",
55  1518,
56  "125125",
57  ];
58  $this->assertEquals($expected1, $this->testObj->getData());
59  }

Field Documentation

◆ $testObj

ilStatistics ilStatisticsTest::$testObj
private

Definition at line 27 of file ilStatisticsTest.php.


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