ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilStatisticsTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilStatistics();
34  }
35 
37  {
38  $this->assertInstanceOf(ilStatistics::class, $this->testObj);
39  }
40 
41  public function testData(): 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  }
60 }
ilStatistics $testObj
test_instantiateObject_shouldReturnInstance()
Class ilTestBaseClass.
Constants for the handling of elements which are not a number.
Class ilStatisticsTest.