ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
HistCompareTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
26class HistCompareTest extends TestCase
27{
28 //protected $backupGlobals = false;
29
30 protected function setUp(): void
31 {
32 parent::setUp();
33 }
34
35 protected function tearDown(): void
36 {
37 }
38
42 public function testCompare(): void
43 {
44 $this->assertEquals(
45 -1,
47 ["date" => "2021-12-01"],
48 ["date" => "2021-12-03"],
49 )
50 );
51 }
52
56 public function testCompare2(): void
57 {
58 $this->assertEquals(
59 1,
61 ["date" => "2021-12-01"],
62 ["date" => "2021-11-03"],
63 )
64 );
65 }
66
70 public function testCompare3(): void
71 {
72 $this->assertEquals(
73 0,
75 ["date" => "2021-12-03"],
76 ["date" => "2021-12-03"],
77 )
78 );
79 }
80}
Test clipboard repository.
testCompare2()
Test compare 2.
testCompare3()
Test compare 3.
testCompare()
Test compare.
static _compareHistArray(array $a, array $b)