ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
HistCompareTest.php
Go to the documentation of this file.
1
<?php
2
3
use
PHPUnit\Framework\TestCase
;
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,
30
ilHistory::_compareHistArray
(
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,
44
ilHistory::_compareHistArray
(
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,
58
ilHistory::_compareHistArray
(
59
[
"date"
=>
"2021-12-03"
],
60
[
"date"
=>
"2021-12-03"
],
61
)
62
);
63
}
64
}
HistCompareTest\tearDown
tearDown()
Definition:
HistCompareTest.php:19
HistCompareTest\setUp
setUp()
Definition:
HistCompareTest.php:14
HistCompareTest\testCompare
testCompare()
Test compare.
Definition:
HistCompareTest.php:26
HistCompareTest\testCompare3
testCompare3()
Test compare 3.
Definition:
HistCompareTest.php:54
ilHistory\_compareHistArray
static _compareHistArray(array $a, array $b)
Definition:
class.ilHistory.php:167
HistCompareTest
Test clipboard repository.
Definition:
HistCompareTest.php:10
HistCompareTest\testCompare2
testCompare2()
Test compare 2.
Definition:
HistCompareTest.php:40
TestCase
Services
History
test
HistCompareTest.php
Generated on Tue Apr 1 2025 22:02:22 for ILIAS by
1.8.13 (using
Doxyfile
)