19declare(strict_types=1);
23use PHPUnit\Framework\TestCase;
34 $this->component = $this->createMock(Component::class);
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);
58 $result = iterator_to_array(
$of_component->getInDependencies());
60 $this->assertEquals([$in], $result);
A dependency where the component needs something from the world.
A dependency where the component gives something to the world.
D OfComponent $of_component