Definition at line 27 of file OfComponentTest.php.
◆ setUp()
ILIAS\Component\Tests\Dependencies\OfComponentTest::setUp |
( |
| ) |
|
Definition at line 32 of file OfComponentTest.php.
32 : void
33 {
34 $this->component = $this->createMock(Component::class);
36 $this->component
37 );
38 }
◆ testGetComponent()
ILIAS\Component\Tests\Dependencies\OfComponentTest::testGetComponent |
( |
| ) |
|
Definition at line 40 of file OfComponentTest.php.
40 : void
41 {
42 $this->assertEquals($this->component, $this->of_component->getComponent());
43 }
◆ testInDependencies()
ILIAS\Component\Tests\Dependencies\OfComponentTest::testInDependencies |
( |
| ) |
|
Definition at line 45 of file OfComponentTest.php.
45 : 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
53 $this->component,
54 $in,
56 );
57
58 $result = iterator_to_array(
$of_component->getInDependencies());
59
60 $this->assertEquals([$in], $result);
61 }
A dependency where the component needs something from the world.
A dependency where the component gives something to the world.
D OfComponent $of_component
References ILIAS\Component\Tests\Dependencies\OfComponentTest\$of_component, and $out.
◆ $component
Component ILIAS\Component\Tests\Dependencies\OfComponentTest::$component |
|
protected |
◆ $of_component
D OfComponent ILIAS\Component\Tests\Dependencies\OfComponentTest::$of_component |
|
protected |
The documentation for this class was generated from the following file: