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 55
55
use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService3 ;
56
56
use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService3Configurator ;
57
57
use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService4 ;
58
+ use Symfony \Contracts \Service \Attribute \SubscribedService ;
58
59
use Symfony \Contracts \Service \ServiceProviderInterface ;
59
60
use Symfony \Contracts \Service \ServiceSubscriberInterface ;
60
61
@@ -391,6 +392,10 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethod()
391
392
392
393
public function testLocatorConfiguredViaAttribute ()
393
394
{
395
+ if (!property_exists (SubscribedService::class, 'type ' )) {
396
+ $ this ->markTestSkipped ('Requires symfony/service-contracts >= 3.2 ' );
397
+ }
398
+
394
399
$ container = new ContainerBuilder ();
395
400
$ container ->setParameter ('some.parameter ' , 'foo ' );
396
401
$ container ->register (BarTagClass::class)
You can’t perform that action at this time.
0 commit comments