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 44
55use Matthias \SymfonyDependencyInjectionTest \PhpUnit \ContainerBuilderHasAliasConstraint ;
66use PHPUnit \Framework \TestCase ;
7+ use Symfony \Component \DependencyInjection \ChildDefinition ;
78use Symfony \Component \DependencyInjection \ContainerBuilder ;
89
910class ContainerBuilderHasAliasConstraintTest extends TestCase
@@ -84,6 +85,10 @@ public function it_expects_a_string_for_service_id()
8485 */
8586 public function it_does_not_change_case_of_aliased_service_ids ()
8687 {
88+ if (!class_exists (ChildDefinition::class)) {
89+ $ this ->markTestSkipped ('This test requires at least Symfony 3.3 ' );
90+ }
91+
8792 $ containerBuilder = new ContainerBuilder ();
8893 $ containerBuilder ->setAlias ('Interface ' , 'InterfaceImplementationService ' );
8994 $ constraint = new ContainerBuilderHasAliasConstraint ('Interface ' , 'InterfaceImplementationService ' );
You can’t perform that action at this time.
0 commit comments