@@ -56,8 +56,12 @@ public function testDemoApplicationInstallation()
56
56
/**
57
57
* @dataProvider provideSymfonyInstallationData
58
58
*/
59
- public function testSymfonyInstallation ($ versionToInstall , $ messageRegexp , $ versionRegexp )
59
+ public function testSymfonyInstallation ($ versionToInstall , $ messageRegexp , $ versionRegexp, $ minPhpVersion )
60
60
{
61
+ if (version_compare (phpversion (), $ minPhpVersion , '< ' )) {
62
+ $ this ->markTestSkipped (sprintf ('This test requires PHP %s or higher. ' , $ minPhpVersion ));
63
+ }
64
+
61
65
$ projectDir = sprintf ('%s/my_test_project ' , sys_get_temp_dir ());
62
66
$ this ->fs ->remove ($ projectDir );
63
67
@@ -136,42 +140,49 @@ public function provideSymfonyInstallationData()
136
140
'' ,
137
141
'/.*Symfony 3\.1\.\d+ was successfully installed.*/ ' ,
138
142
'/Symfony version 3\.1\.\d+(-DEV)? - app\/dev\/debug/ ' ,
143
+ '5.5.9 ' ,
139
144
),
140
145
141
146
array (
142
147
'3.0 ' ,
143
148
'/.*Symfony 3\.0\.\d+ was successfully installed.*/ ' ,
144
149
'/Symfony version 3\.0\.\d+(-DEV)? - app\/dev\/debug/ ' ,
150
+ '5.5.9 ' ,
145
151
),
146
152
147
153
array (
148
154
'lts ' ,
149
155
'/.*Symfony 2\.8\.\d+ was successfully installed.*/ ' ,
150
156
'/Symfony version 2\.8\.\d+(-DEV)? - app\/dev\/debug/ ' ,
157
+ '5.3.9 ' ,
151
158
),
152
159
153
160
array (
154
161
'2.3 ' ,
155
162
'/.*Symfony 2\.3\.\d+ was successfully installed.*/ ' ,
156
163
'/Symfony version 2\.3\.\d+ - app\/dev\/debug/ ' ,
164
+ '5.3.9 ' ,
157
165
),
158
166
159
167
array (
160
168
'2.5.6 ' ,
161
169
'/.*Symfony 2\.5\.6 was successfully installed.*/ ' ,
162
170
'/Symfony version 2\.5\.6 - app\/dev\/debug/ ' ,
171
+ '5.3.9 ' ,
163
172
),
164
173
165
174
array (
166
175
'2.7.0-BETA1 ' ,
167
176
'/.*Symfony 2\.7\.0\-BETA1 was successfully installed.*/ ' ,
168
177
'/Symfony version 2\.7\.0\-BETA1 - app\/dev\/debug/ ' ,
178
+ '5.3.9 ' ,
169
179
),
170
180
171
181
array (
172
182
'3.0.0-BETA1 ' ,
173
183
'/.*Symfony dev\-master was successfully installed.*/ ' ,
174
184
'/Symfony version 3\.0\.0\-BETA1 - app\/dev\/debug/ ' ,
185
+ '5.5.9 ' ,
175
186
),
176
187
);
177
188
}
0 commit comments