File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 5555use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService3 ;
5656use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService3Configurator ;
5757use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService4 ;
58+ use Symfony \Contracts \Service \Attribute \SubscribedService ;
5859use Symfony \Contracts \Service \ServiceProviderInterface ;
5960use Symfony \Contracts \Service \ServiceSubscriberInterface ;
6061
@@ -391,6 +392,10 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethod()
391392
392393 public function testLocatorConfiguredViaAttribute ()
393394 {
395+ if (!property_exists (SubscribedService::class, 'type ' )) {
396+ $ this ->markTestSkipped ('Requires symfony/service-contracts >= 3.2 ' );
397+ }
398+
394399 $ container = new ContainerBuilder ();
395400 $ container ->setParameter ('some.parameter ' , 'foo ' );
396401 $ container ->register (BarTagClass::class)
You can’t perform that action at this time.
0 commit comments