diff --git a/test/Filter/NumberFormatTest.php b/test/Filter/NumberFormatTest.php index c68be023..a275c3f5 100644 --- a/test/Filter/NumberFormatTest.php +++ b/test/Filter/NumberFormatTest.php @@ -73,7 +73,7 @@ public function testFormattedToNumber($locale, $style, $type, $value, $expected) public function numberToFormattedProvider() { if (!extension_loaded('intl')) { - if (version_compare(\PHPUnit_Runner_Version::VERSION, '3.8.0-dev') === 1) { + if (version_compare(\PHPUnit_Runner_Version::id(), '3.8.0-dev') === 1) { $this->markTestSkipped('ext/intl not enabled'); } else { return array(array()); @@ -108,7 +108,7 @@ public function numberToFormattedProvider() public function formattedToNumberProvider() { if (!extension_loaded('intl')) { - if (version_compare(\PHPUnit_Runner_Version::VERSION, '3.8.0-dev') === 1) { + if (version_compare(\PHPUnit_Runner_Version::id(), '3.8.0-dev') === 1) { $this->markTestSkipped('ext/intl not enabled'); } else { return array(array()); diff --git a/test/Validator/DateTimeTest.php b/test/Validator/DateTimeTest.php index 6282d5d6..1bc1f104 100644 --- a/test/Validator/DateTimeTest.php +++ b/test/Validator/DateTimeTest.php @@ -68,7 +68,7 @@ public function testBasic($value, $expected, $options = array()) public function basicProvider() { if (!extension_loaded('intl')) { - if (version_compare(\PHPUnit_Runner_Version::VERSION, '3.8.0-dev') === 1) { + if (version_compare(\PHPUnit_Runner_Version::id(), '3.8.0-dev') === 1) { $this->markTestSkipped('ext/intl not enabled'); } else { return array(array()); diff --git a/test/View/Helper/DateFormatTest.php b/test/View/Helper/DateFormatTest.php index 88f696fa..564d82ba 100644 --- a/test/View/Helper/DateFormatTest.php +++ b/test/View/Helper/DateFormatTest.php @@ -56,7 +56,7 @@ public function tearDown() public function dateTestsDataProvider() { if (!extension_loaded('intl')) { - if (version_compare(\PHPUnit_Runner_Version::VERSION, '3.8.0-dev') === 1) { + if (version_compare(\PHPUnit_Runner_Version::id(), '3.8.0-dev') === 1) { $this->markTestSkipped('ext/intl not enabled'); } else { return array(array()); @@ -156,7 +156,7 @@ public function dateTestsDataProvider() public function dateTestsDataProviderWithPattern() { if (!extension_loaded('intl')) { - if (version_compare(\PHPUnit_Runner_Version::VERSION, '3.8.0-dev') === 1) { + if (version_compare(\PHPUnit_Runner_Version::id(), '3.8.0-dev') === 1) { $this->markTestSkipped('ext/intl not enabled'); } else { return array(array()); diff --git a/test/View/Helper/NumberFormatTest.php b/test/View/Helper/NumberFormatTest.php index dce9f5b5..7c7e4cbb 100644 --- a/test/View/Helper/NumberFormatTest.php +++ b/test/View/Helper/NumberFormatTest.php @@ -55,7 +55,7 @@ public function tearDown() public function currencyTestsDataProvider() { if (!extension_loaded('intl')) { - if (version_compare(\PHPUnit_Runner_Version::VERSION, '3.8.0-dev') === 1) { + if (version_compare(\PHPUnit_Runner_Version::id(), '3.8.0-dev') === 1) { $this->markTestSkipped('ext/intl not enabled'); } else { return array(array());