mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
PHP version checks tweaking
This commit is contained in:
parent
13a3349603
commit
29ca21f30e
10 changed files with 13 additions and 13 deletions
|
@ -146,7 +146,7 @@ class StreamContextFactoryTest extends \PHPUnit_Framework_TestCase
|
|||
'SNI_server_name' => 'example.org'
|
||||
)
|
||||
);
|
||||
if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
|
||||
if (PHP_VERSION_ID >= 50600) {
|
||||
unset($expected['ssl']['SNI_server_name']);
|
||||
}
|
||||
$this->assertEquals($expected, $options);
|
||||
|
@ -176,7 +176,7 @@ class StreamContextFactoryTest extends \PHPUnit_Framework_TestCase
|
|||
'SNI_server_name' => 'example.org'
|
||||
)
|
||||
);
|
||||
if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
|
||||
if (PHP_VERSION_ID >= 50600) {
|
||||
unset($expected['ssl']['SNI_server_name']);
|
||||
}
|
||||
$this->assertEquals($expected, $options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue