File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,19 +184,19 @@ public function testIndexedByServiceIdWithDecoration()
184
184
185
185
$ container ->setDefinition (Service::class, $ service );
186
186
187
- $ decorated = new Definition (Decorated ::class);
187
+ $ decorated = new Definition (DecoratedService ::class);
188
188
$ decorated ->setPublic (true );
189
189
$ decorated ->setDecoratedService (Service::class);
190
190
191
- $ container ->setDefinition (Decorated ::class, $ decorated );
191
+ $ container ->setDefinition (DecoratedService ::class, $ decorated );
192
192
193
193
$ container ->compile ();
194
194
195
195
/** @var ServiceLocator $locator */
196
196
$ locator = $ container ->get (Locator::class)->locator ;
197
197
static ::assertTrue ($ locator ->has (Service::class));
198
- static ::assertFalse ($ locator ->has (Decorated ::class));
199
- static ::assertInstanceOf (Decorated ::class, $ locator ->get (Service::class));
198
+ static ::assertFalse ($ locator ->has (DecoratedService ::class));
199
+ static ::assertInstanceOf (DecoratedService ::class, $ locator ->get (Service::class));
200
200
}
201
201
202
202
public function testDefinitionOrderIsTheSame ()
You can’t perform that action at this time.
0 commit comments