File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Symfony/Component/DependencyInjection/Tests/Compiler 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()
184184
185185 $ container ->setDefinition (Service::class, $ service );
186186
187- $ decorated = new Definition (Decorated ::class);
187+ $ decorated = new Definition (DecoratedService ::class);
188188 $ decorated ->setPublic (true );
189189 $ decorated ->setDecoratedService (Service::class);
190190
191- $ container ->setDefinition (Decorated ::class, $ decorated );
191+ $ container ->setDefinition (DecoratedService ::class, $ decorated );
192192
193193 $ container ->compile ();
194194
195195 /** @var ServiceLocator $locator */
196196 $ locator = $ container ->get (Locator::class)->locator ;
197197 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));
200200 }
201201
202202 public function testDefinitionOrderIsTheSame ()
You can’t perform that action at this time.
0 commit comments