Definition at line 27 of file OfComponentTest.php.
◆ setUp()
ILIAS\Component\Tests\Dependencies\OfComponentTest::setUp |
( |
| ) |
|
Definition at line 32 of file OfComponentTest.php.
34 $this->component = $this->createMock(Component::class);
35 $this->of_component =
new D\OfComponent(
◆ testGetComponent()
ILIAS\Component\Tests\Dependencies\OfComponentTest::testGetComponent |
( |
| ) |
|
Definition at line 40 of file OfComponentTest.php.
42 $this->assertEquals($this->component, $this->of_component->getComponent());
◆ testInDependencies()
ILIAS\Component\Tests\Dependencies\OfComponentTest::testInDependencies |
( |
| ) |
|
Definition at line 45 of file OfComponentTest.php.
References $out.
47 $name = TestInterface::class;
49 $out =
new D\Out(
D\OutType::PROVIDE, $name,
"Some\\Class", []);
50 $in =
new D\In(
D\InType::PULL, $name);
58 $result = iterator_to_array(
$of_component->getInDependencies());
60 $this->assertEquals([$in], $result);
D OfComponent $of_component
◆ $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: