Definition at line 27 of file OfComponentTest.php.
◆ setUp()
| ILIAS\Component\Tests\Dependencies\OfComponentTest::setUp |
( |
| ) |
|
Definition at line 35 of file OfComponentTest.php.
35 : void
36 {
37 $this->component = $this->createStub(Component::class);
39 $this->component
40 );
41 }
◆ testGetComponent()
| ILIAS\Component\Tests\Dependencies\OfComponentTest::testGetComponent |
( |
| ) |
|
Definition at line 43 of file OfComponentTest.php.
43 : void
44 {
45 $this->assertEquals($this->component, $this->of_component->getComponent());
46 }
◆ testInDependencies()
| ILIAS\Component\Tests\Dependencies\OfComponentTest::testInDependencies |
( |
| ) |
|
Definition at line 48 of file OfComponentTest.php.
48 : void
49 {
50 $name = TestInterface::class;
51
52 $out =
new D\Out(
D\OutType::PROVIDE, $name,
"Some\\Class", []);
53 $in =
new D\In(
D\InType::PULL, $name);
54
56 $this->component,
57 $in,
59 );
60
61 $result = iterator_to_array(
$of_component->getInDependencies());
62
63 $this->assertEquals([$in], $result);
64 }
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
| PHPUnit Framework MockObject Stub 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: