Skip to content

Commit c407d24

Browse files
committed
revert sf version check
1 parent 1b23270 commit c407d24

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pkg/enqueue-bundle/Tests/Functional/UseCasesTest.php

+9-5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Interop\Queue\PsrQueue;
1515
use Symfony\Component\Console\Tester\CommandTester;
1616
use Symfony\Component\Filesystem\Filesystem;
17+
use Symfony\Component\HttpKernel\Kernel;
1718

1819
/**
1920
* @group functional
@@ -92,11 +93,14 @@ public function provideEnqueueConfigs()
9293
],
9394
]];
9495

95-
yield 'default_dsn_as_env' => [[
96-
'transport' => [
97-
'default' => '%env(AMQP_DSN)%',
98-
],
99-
]];
96+
// Symfony 2.x does not such env syntax
97+
if (version_compare(Kernel::VERSION, '3.2', '>=')) {
98+
yield 'default_dsn_as_env' => [[
99+
'transport' => [
100+
'default' => '%env(AMQP_DSN)%',
101+
],
102+
]];
103+
}
100104

101105
yield 'default_dbal_as_dsn' => [[
102106
'transport' => [

0 commit comments

Comments
 (0)