19declare(strict_types=1);
23use PHPUnit\Framework\TestCase;
37 $this->component = $this->createStub(Component::class);
45 $this->assertEquals($this->component, $this->of_component->getComponent());
50 $name = TestInterface::class;
52 $out =
new D\Out(
D\OutType::PROVIDE, $name,
"Some\\Class", []);
53 $in =
new D\In(
D\InType::PULL, $name);
61 $result = iterator_to_array(
$of_component->getInDependencies());
63 $this->assertEquals([$in], $result);
A dependency where the component needs something from the world.
A dependency where the component gives something to the world.
PHPUnit Framework MockObject Stub $component
D OfComponent $of_component