ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
◀ 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
OfComponentTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Component\Tests\Dependencies
;
22
23
use
PHPUnit\Framework\TestCase
;
24
use
ILIAS\Component\Component
;
25
use
ILIAS\Component\Dependencies
as
D
;
26
27
class
OfComponentTest
extends
TestCase
28
{
29
protected
Component
$component
;
30
protected
D\OfComponent
$of_component
;
31
32
public
function
setUp
(): void
33
{
34
$this->component = $this->createMock(Component::class);
35
$this->of_component =
new
D\OfComponent(
36
$this->component
37
);
38
}
39
40
public
function
testGetComponent
(): void
41
{
42
$this->assertEquals($this->component, $this->of_component->getComponent());
43
}
44
45
public
function
testInDependencies
(): void
46
{
47
$name = TestInterface::class;
48
49
$out
=
new
D\Out(
D
\OutType::PROVIDE, $name,
"Some\\Class"
, []);
50
$in =
new
D\In(
D
\InType::PULL, $name);
51
52
$of_component =
new
D\OfComponent(
53
$this->component,
54
$in,
55
$out
56
);
57
58
$result = iterator_to_array($of_component->getInDependencies());
59
60
$this->assertEquals([$in], $result);
61
}
62
}
ILIAS\Component\Tests\Dependencies\OfComponentTest
Definition:
OfComponentTest.php:27
ILIAS\UI\Component
ILIAS\Component\Tests\Dependencies\OfComponentTest\$component
Component $component
Definition:
OfComponentTest.php:29
ILIAS\Component\Tests\Dependencies
Definition:
NameTest.php:21
ILIAS\Component\Tests\Dependencies\OfComponentTest\testGetComponent
testGetComponent()
Definition:
OfComponentTest.php:40
$out
$out
Definition:
buildRTE.php:24
ILIAS\Component\Tests\Dependencies\OfComponentTest\testInDependencies
testInDependencies()
Definition:
OfComponentTest.php:45
ILIAS\Component\Tests\Dependencies\OfComponentTest\setUp
setUp()
Definition:
OfComponentTest.php:32
Component
ILIAS\Component\Tests\Dependencies\OfComponentTest\$of_component
D OfComponent $of_component
Definition:
OfComponentTest.php:30
ILIAS\Component\Dependencies
Definition:
Define.php:21
TestCase
ILIAS\UI\Component\Dropzone
Definition:
Factory.php:21
components
ILIAS
Component
tests
Dependencies
OfComponentTest.php
Generated on Fri Apr 11 2025 23:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)