Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 5ef6cd2

Browse files
committed
Removed duplicated test
The same functionality is tested in testDelegatorFactoriesTriggerForFactoryBackedServicesUsingAnyFactoryType with data "invokable-class-name"
1 parent fdd4a60 commit 5ef6cd2

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/DelegatorTestTrait.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,6 @@ public function testDelegatorsDoNotOperateOnServices() : void
6363
self::assertSame($myService, $instance);
6464
}
6565

66-
public function testDelegatorsOperateOnFactoryBackedServices() : void
67-
{
68-
$config = [
69-
'factories' => [
70-
'foo-bar' => TestAsset\Factory::class,
71-
],
72-
'delegators' => [
73-
'foo-bar' => [
74-
TestAsset\DelegatorFactory::class,
75-
],
76-
],
77-
];
78-
79-
$container = $this->createContainer($config);
80-
81-
self::assertTrue($container->has('foo-bar'));
82-
$instance = $container->get('foo-bar');
83-
self::assertInstanceOf(TestAsset\Delegator::class, $instance);
84-
self::assertInstanceOf(TestAsset\Service::class, ($instance->callback)());
85-
86-
// Retrieving a second time should retrieve the same instance.
87-
self::assertSame($instance, $container->get('foo-bar'));
88-
}
89-
9066
public function testDelegatorsApplyToInvokableServiceResolvedViaAlias() : void
9167
{
9268
$config = [

0 commit comments

Comments
 (0)