ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
HistCompareTest.php
Go to the documentation of this file.
1 <?php
2 
4 
10 class HistCompareTest extends TestCase
11 {
12  //protected $backupGlobals = false;
13 
14  protected function setUp(): void
15  {
16  parent::setUp();
17  }
18 
19  protected function tearDown(): void
20  {
21  }
22 
26  public function testCompare(): void
27  {
28  $this->assertEquals(
29  -1,
31  ["date" => "2021-12-01"],
32  ["date" => "2021-12-03"],
33  )
34  );
35  }
36 
40  public function testCompare2(): void
41  {
42  $this->assertEquals(
43  1,
45  ["date" => "2021-12-01"],
46  ["date" => "2021-11-03"],
47  )
48  );
49  }
50 
54  public function testCompare3(): void
55  {
56  $this->assertEquals(
57  0,
59  ["date" => "2021-12-03"],
60  ["date" => "2021-12-03"],
61  )
62  );
63  }
64 }
testCompare()
Test compare.
testCompare3()
Test compare 3.
static _compareHistArray(array $a, array $b)
Test clipboard repository.
testCompare2()
Test compare 2.