File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
pkg/enqueue-bundle/Tests/Functional Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1414use Interop \Queue \PsrQueue ;
1515use Symfony \Component \Console \Tester \CommandTester ;
1616use 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 ' => [
You can’t perform that action at this time.
0 commit comments