@@ -32,6 +32,9 @@ class PhpReadinessCheckTest extends \PHPUnit_Framework_TestCase
32
32
33
33
public function setUp ()
34
34
{
35
+ if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
36
+ $ this ->markTestSkipped ('Skipped for PHP 7 ' );
37
+ }
35
38
$ this ->composerInfo = $ this ->getMock ('Magento\Framework\Composer\ComposerInformation ' , [], [], '' , false );
36
39
$ this ->phpInfo = $ this ->getMock ('Magento\Setup\Model\PhpInformation ' , [], [], '' , false );
37
40
$ this ->versionParser = $ this ->getMock ('Composer\Package\Version\VersionParser ' , [], [], '' , false );
@@ -216,9 +219,6 @@ public function testCheckPhpSettings()
216
219
]
217
220
]
218
221
];
219
- if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
220
- unset($ expected ['data ' ]['always_populate_raw_post_data ' ]);
221
- }
222
222
$ this ->assertEquals ($ expected , $ this ->phpReadinessCheck ->checkPhpSettings ());
223
223
}
224
224
@@ -257,9 +257,6 @@ public function testCheckPhpSettingsFailed()
257
257
]
258
258
]
259
259
];
260
- if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
261
- unset($ expected ['data ' ]['always_populate_raw_post_data ' ]);
262
- }
263
260
$ this ->assertEquals ($ expected , $ this ->phpReadinessCheck ->checkPhpSettings ());
264
261
}
265
262
@@ -286,9 +283,6 @@ public function testCheckPhpSettingsNoXDebug()
286
283
]
287
284
]
288
285
];
289
- if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
290
- unset($ expected ['data ' ]['always_populate_raw_post_data ' ]);
291
- }
292
286
$ this ->assertEquals ($ expected , $ this ->phpReadinessCheck ->checkPhpSettings ());
293
287
}
294
288
0 commit comments