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 14
14
use Interop \Queue \PsrQueue ;
15
15
use Symfony \Component \Console \Tester \CommandTester ;
16
16
use Symfony \Component \Filesystem \Filesystem ;
17
+ use Symfony \Component \HttpKernel \Kernel ;
17
18
18
19
/**
19
20
* @group functional
@@ -92,11 +93,14 @@ public function provideEnqueueConfigs()
92
93
],
93
94
]];
94
95
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
+ }
100
104
101
105
yield 'default_dbal_as_dsn ' => [[
102
106
'transport ' => [
You can’t perform that action at this time.
0 commit comments