19 declare(strict_types=1);
34 $this->component = $this->createMock(Component::class);
35 $this->of_component =
new D\OfComponent(
42 $this->assertEquals($this->component, $this->of_component->getComponent());
47 $name = TestInterface::class;
49 $out =
new D\Out(
D\OutType::PROVIDE, $name,
"Some\\Class", []);
50 $in =
new D\In(
D\InType::PULL, $name);
52 $of_component =
new D\OfComponent(
58 $result = iterator_to_array($of_component->getInDependencies());
60 $this->assertEquals([$in], $result);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
D OfComponent $of_component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...