ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
GroupTest.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Tests\Refinery\DateTime
;
6
7
use
ILIAS\Data\Factory
;
8
use
ILIAS\Refinery\DateTime\Group
;
9
use
ILIAS\Refinery\DateTime\ChangeTimezone
;
10
use
ILIAS\Tests\Refinery\TestCase
;
11
12
require_once(
'./libs/composer/vendor/autoload.php'
);
13
require_once(
'./tests/Refinery/TestCase.php'
);
14
15
class
GroupTest
extends
TestCase
16
{
20
private
$group
;
21
25
private
$dataFactory
;
26
27
public
function
setUp
() : void
28
{
29
$this->dataFactory =
new
Factory
();
30
$this->group =
new
Group
($this->dataFactory);
31
}
32
33
public
function
testChangeTimezone
()
34
{
35
$instance = $this->group->changeTimezone(
'Europe/Berlin'
);
36
$this->assertInstanceOf(ChangeTimezone::class, $instance);
37
}
38
39
public
function
testChangeTimezoneWrongConstruction
()
40
{
41
$this->expectException(\InvalidArgumentException::class);
42
$instance = $this->group->changeTimezone(
'MiddleEarth/Minas_Morgul'
);
43
}
44
}
Group
ILIAS\Tests\Refinery\DateTime\GroupTest
Definition:
GroupTest.php:15
ILIAS\Refinery\DateTime\Group
Definition:
Group.php:14
TestCase
ILIAS\Tests\Refinery\DateTime
Definition:
GroupTest.php:5
ILIAS\Tests\Refinery\DateTime\GroupTest\testChangeTimezoneWrongConstruction
testChangeTimezoneWrongConstruction()
Definition:
GroupTest.php:39
ILIAS\Tests\Refinery\DateTime\GroupTest\testChangeTimezone
testChangeTimezone()
Definition:
GroupTest.php:33
ILIAS\Tests\Refinery\DateTime\GroupTest\setUp
setUp()
Definition:
GroupTest.php:27
Factory
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
ILIAS\Tests\Refinery\DateTime\GroupTest\$dataFactory
$dataFactory
Definition:
GroupTest.php:25
ILIAS\Tests\Refinery\DateTime\GroupTest\$group
$group
Definition:
GroupTest.php:20
ChangeTimezone
TestCase
tests
Refinery
DateTime
GroupTest.php
Generated on Tue Apr 8 2025 21:02:15 for ILIAS by
1.8.13 (using
Doxyfile
)