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
ObjectiveConstructorTest.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
20
namespace
ILIAS\Tests\Setup
;
21
22
use
PHPUnit\Framework\TestCase
;
23
use
ILIAS\Setup\ObjectiveConstructor
;
24
use
ILIAS\Setup\ObjectiveCollection
;
25
use
ILIAS\Setup\Objective\NullObjective
;
26
32
class
ObjectiveConstructorTest
extends
TestCase
33
{
34
private
ObjectiveConstructor
$testObj
;
35
private
ObjectiveCollection
$objectiveCollection
;
36
private \Closure
$closure
;
37
38
protected
function
setUp
(): void
39
{
40
parent::setUp();
41
$this->objectiveCollection =
new
ObjectiveCollection
(
42
""
,
43
false
,
44
new
NullObjective
()
45
);
46
47
$this->closure =
function
():
ObjectiveCollection
{
48
return
$this->objectiveCollection
;
49
};
50
51
$this->testObj =
new
ObjectiveConstructor
(
52
"My description"
,
53
$this->closure
54
);
55
}
56
57
public
function
testGetDescription
(): void
58
{
59
$this->assertEquals(
60
"My description"
,
61
$this->testObj->getDescription()
62
);
63
}
64
65
public
function
testCreate
(): void
66
{
67
$this->assertEquals($this->objectiveCollection, $this->testObj->create());
68
}
69
}
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved...
Definition:
ObjectiveCollection.php:26
ILIAS\Tests\Setup\ObjectiveConstructorTest\setUp
setUp()
Definition:
ObjectiveConstructorTest.php:38
ILIAS\Tests\Setup\ObjectiveConstructorTest\$closure
Closure $closure
Definition:
ObjectiveConstructorTest.php:36
ILIAS\Tests\Setup\ObjectiveConstructorTest\$testObj
ObjectiveConstructor $testObj
Definition:
ObjectiveConstructorTest.php:34
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:28
ILIAS\Tests\Setup\ObjectiveConstructorTest\testGetDescription
testGetDescription()
Definition:
ObjectiveConstructorTest.php:57
ObjectiveConstructor
ILIAS\Tests\Setup\ObjectiveConstructorTest
Definition:
ObjectiveConstructorTest.php:32
ObjectiveCollection
ILIAS\Tests\Setup\ObjectiveConstructorTest\testCreate
testCreate()
Definition:
ObjectiveConstructorTest.php:65
ILIAS\Setup\ObjectiveConstructor
Definition:
ObjectiveConstructor.php:29
ILIAS\Tests\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Tests\Setup\ObjectiveConstructorTest\$objectiveCollection
ObjectiveCollection $objectiveCollection
Definition:
ObjectiveConstructorTest.php:35
TestCase
NullObjective
tests
Setup
ObjectiveConstructorTest.php
Generated on Tue Apr 1 2025 22:02:51 for ILIAS by
1.8.13 (using
Doxyfile
)