ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
GlobalSettingsTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\TestCase
;
22
23
class
GlobalSettingsTest
extends
TestCase
24
{
25
public
function
testConstruction
():
LSGlobalSettings
26
{
27
$interval = 12.3;
28
$settings =
new
LSGlobalSettings
($interval);
29
$this->assertEquals(
30
$interval,
31
$settings->getPollingIntervalSeconds()
32
);
33
return
$settings;
34
}
35
39
public
function
testIntervalAttribute
(
LSGlobalSettings
$settings): void
40
{
41
$interval = 2.0;
42
$settings = $settings->
withPollingIntervalSeconds
($interval);
43
$this->assertEquals(
44
$interval,
45
$settings->
getPollingIntervalSeconds
()
46
);
47
$this->assertEquals(
48
$interval * 1000,
49
$settings->
getPollingIntervalMilliseconds
()
50
);
51
}
52
}
GlobalSettingsTest\testConstruction
testConstruction()
Definition:
GlobalSettingsTest.php:25
LSGlobalSettings
Global Settings of the Learning Sequence.
Definition:
LSGlobalSettings.php:24
LSGlobalSettings\getPollingIntervalSeconds
getPollingIntervalSeconds()
Definition:
LSGlobalSettings.php:33
GlobalSettingsTest
Definition:
GlobalSettingsTest.php:23
LSGlobalSettings\getPollingIntervalMilliseconds
getPollingIntervalMilliseconds()
Definition:
LSGlobalSettings.php:38
GlobalSettingsTest\testIntervalAttribute
testIntervalAttribute(LSGlobalSettings $settings)
testConstruction
Definition:
GlobalSettingsTest.php:39
TestCase
TestCase
LSGlobalSettings\withPollingIntervalSeconds
withPollingIntervalSeconds(float $seconds)
Definition:
LSGlobalSettings.php:44
components
ILIAS
LearningSequence
tests
GlobalSettings
GlobalSettingsTest.php
Generated on Mon Apr 7 2025 23:03:47 for ILIAS by
1.8.13 (using
Doxyfile
)