Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit a80196a

Browse files
committed
Make sure that the Symfony version can be installed in the system
1 parent 003459d commit a80196a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/Symfony/Installer/Tests/IntegrationTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ public function testDemoApplicationInstallation()
5656
/**
5757
* @dataProvider provideSymfonyInstallationData
5858
*/
59-
public function testSymfonyInstallation($versionToInstall, $messageRegexp, $versionRegexp)
59+
public function testSymfonyInstallation($versionToInstall, $messageRegexp, $versionRegexp, $minPhpVersion)
6060
{
61+
if (version_compare(phpversion(), $minPhpVersion, '<')) {
62+
$this->markTestSkipped(sprintf('This test requires PHP %s or higher.', $minPhpVersion));
63+
}
64+
6165
$projectDir = sprintf('%s/my_test_project', sys_get_temp_dir());
6266
$this->fs->remove($projectDir);
6367

@@ -136,42 +140,49 @@ public function provideSymfonyInstallationData()
136140
'',
137141
'/.*Symfony 3\.1\.\d+ was successfully installed.*/',
138142
'/Symfony version 3\.1\.\d+(-DEV)? - app\/dev\/debug/',
143+
'5.5.9',
139144
),
140145

141146
array(
142147
'3.0',
143148
'/.*Symfony 3\.0\.\d+ was successfully installed.*/',
144149
'/Symfony version 3\.0\.\d+(-DEV)? - app\/dev\/debug/',
150+
'5.5.9',
145151
),
146152

147153
array(
148154
'lts',
149155
'/.*Symfony 2\.8\.\d+ was successfully installed.*/',
150156
'/Symfony version 2\.8\.\d+(-DEV)? - app\/dev\/debug/',
157+
'5.3.9',
151158
),
152159

153160
array(
154161
'2.3',
155162
'/.*Symfony 2\.3\.\d+ was successfully installed.*/',
156163
'/Symfony version 2\.3\.\d+ - app\/dev\/debug/',
164+
'5.3.9',
157165
),
158166

159167
array(
160168
'2.5.6',
161169
'/.*Symfony 2\.5\.6 was successfully installed.*/',
162170
'/Symfony version 2\.5\.6 - app\/dev\/debug/',
171+
'5.3.9',
163172
),
164173

165174
array(
166175
'2.7.0-BETA1',
167176
'/.*Symfony 2\.7\.0\-BETA1 was successfully installed.*/',
168177
'/Symfony version 2\.7\.0\-BETA1 - app\/dev\/debug/',
178+
'5.3.9',
169179
),
170180

171181
array(
172182
'3.0.0-BETA1',
173183
'/.*Symfony dev\-master was successfully installed.*/',
174184
'/Symfony version 3\.0\.0\-BETA1 - app\/dev\/debug/',
185+
'5.5.9',
175186
),
176187
);
177188
}

0 commit comments

Comments
 (0)