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
|
@ -150,7 +150,7 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
public function testUnicode()
|
||||
{
|
||||
if (!function_exists('mb_convert_encoding') && version_compare(PHP_VERSION, '5.4', '<')) {
|
||||
if (!function_exists('mb_convert_encoding') && PHP_VERSION_ID < 50400) {
|
||||
$this->markTestSkipped('Test requires the mbstring extension');
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,7 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
public function testOnlyUnicode()
|
||||
{
|
||||
if (!function_exists('mb_convert_encoding') && version_compare(PHP_VERSION, '5.4', '<')) {
|
||||
if (!function_exists('mb_convert_encoding') && PHP_VERSION_ID < 50400) {
|
||||
$this->markTestSkipped('Test requires the mbstring extension');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue