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