Skip to content

Commit 838798f

Browse files
committed
[Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()
1 parent dde1d34 commit 838798f

File tree

7 files changed

+4
-9
lines changed

7 files changed

+4
-9
lines changed

src/Symfony/Component/Intl/Tests/Collator/Verification/CollatorTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class CollatorTest extends AbstractCollatorTest
2525
protected function setUp()
2626
{
2727
$this->skipIfIntlExtensionNotLoaded();
28-
$this->skipIfInsufficientIcuVersion();
2928

3029
parent::setUp();
3130
}

src/Symfony/Component/Intl/Tests/DateFormatter/Verification/IntlDateFormatterTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class IntlDateFormatterTest extends AbstractIntlDateFormatterTest
2525
protected function setUp()
2626
{
2727
$this->skipIfIntlExtensionNotLoaded();
28-
$this->skipIfInsufficientIcuVersion();
2928

3029
parent::setUp();
3130
}

src/Symfony/Component/Intl/Tests/Globals/Verification/IntlGlobalsTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class IntlGlobalsTest extends AbstractIntlGlobalsTest
2424
protected function setUp()
2525
{
2626
$this->skipIfIntlExtensionNotLoaded();
27-
$this->skipIfInsufficientIcuVersion();
2827

2928
parent::setUp();
3029
}

src/Symfony/Component/Intl/Tests/IntlTestCase.php

-3
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ protected function skipIfIntlExtensionNotLoaded()
4343
if (!Intl::isExtensionLoaded()) {
4444
$this->markTestSkipped('The intl extension is not available.');
4545
}
46-
}
4746

48-
protected function skipIfInsufficientIcuVersion()
49-
{
5047
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
5148
$this->markTestSkipped('Please change ICU version to ' . Intl::getIcuStubVersion());
5249
}

src/Symfony/Component/Intl/Tests/Locale/Verification/LocaleTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class LocaleTest extends AbstractLocaleTest
2424
protected function setUp()
2525
{
2626
$this->skipIfIntlExtensionNotLoaded();
27-
$this->skipIfInsufficientIcuVersion();
2827

2928
parent::setUp();
3029
}

src/Symfony/Component/Intl/Tests/NumberFormatter/Verification/NumberFormatterTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class NumberFormatterTest extends AbstractNumberFormatterTest
2222
protected function setUp()
2323
{
2424
$this->skipIfIntlExtensionNotLoaded();
25-
$this->skipIfInsufficientIcuVersion();
2625

2726
parent::setUp();
2827
}

src/Symfony/Component/Intl/Tests/ResourceBundle/Reader/BinaryBundleReaderTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace Symfony\Component\Intl\Tests\ResourceBundle\Reader;
1313

1414
use Symfony\Component\Intl\ResourceBundle\Reader\BinaryBundleReader;
15+
use Symfony\Component\Intl\Tests\IntlTestCase;
1516

1617
/**
1718
* @author Bernhard Schussek <bschussek@gmail.com>
1819
*/
19-
class BinaryBundleReaderTest extends \PHPUnit_Framework_TestCase
20+
class BinaryBundleReaderTest extends IntlTestCase
2021
{
2122
/**
2223
* @var BinaryBundleReader
@@ -25,6 +26,8 @@ class BinaryBundleReaderTest extends \PHPUnit_Framework_TestCase
2526

2627
protected function setUp()
2728
{
29+
$this->skipIfIntlExtensionNotLoaded();
30+
2831
$this->reader = new BinaryBundleReader();
2932
}
3033

0 commit comments

Comments
 (0)