CodeExplorer TestService example
$this->
assertEquals($expected, ChildTestService::
getSubscribedServices());
} public function testSetContainerIsCalledOnParent() { $container =
new class([]) implements ContainerInterface
{ use ServiceLocatorTrait;
};
$this->
assertSame($container,
(new TestService())->
setContainer($container));
} public function testParentNotCalledIfHasMagicCall() { $container =
new class([]) implements ContainerInterface
{ use ServiceLocatorTrait;
};
$service =
new class() extends ParentWithMagicCall
{ use ServiceSubscriberTrait;
};