[Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()

This commit is contained in:
Bernhard Schussek 2013-03-15 14:19:02 +01:00
parent dde1d3462f
commit 838798f2f3
7 changed files with 4 additions and 9 deletions

View File

@ -25,7 +25,6 @@ class CollatorTest extends AbstractCollatorTest
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
$this->skipIfInsufficientIcuVersion();
parent::setUp();
}

View File

@ -25,7 +25,6 @@ class IntlDateFormatterTest extends AbstractIntlDateFormatterTest
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
$this->skipIfInsufficientIcuVersion();
parent::setUp();
}

View File

@ -24,7 +24,6 @@ class IntlGlobalsTest extends AbstractIntlGlobalsTest
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
$this->skipIfInsufficientIcuVersion();
parent::setUp();
}

View File

@ -43,10 +43,7 @@ abstract class IntlTestCase extends \PHPUnit_Framework_TestCase
if (!Intl::isExtensionLoaded()) {
$this->markTestSkipped('The intl extension is not available.');
}
}
protected function skipIfInsufficientIcuVersion()
{
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
$this->markTestSkipped('Please change ICU version to ' . Intl::getIcuStubVersion());
}

View File

@ -24,7 +24,6 @@ class LocaleTest extends AbstractLocaleTest
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
$this->skipIfInsufficientIcuVersion();
parent::setUp();
}

View File

@ -22,7 +22,6 @@ class NumberFormatterTest extends AbstractNumberFormatterTest
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
$this->skipIfInsufficientIcuVersion();
parent::setUp();
}

View File

@ -12,11 +12,12 @@
namespace Symfony\Component\Intl\Tests\ResourceBundle\Reader;
use Symfony\Component\Intl\ResourceBundle\Reader\BinaryBundleReader;
use Symfony\Component\Intl\Tests\IntlTestCase;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class BinaryBundleReaderTest extends \PHPUnit_Framework_TestCase
class BinaryBundleReaderTest extends IntlTestCase
{
/**
* @var BinaryBundleReader
@ -25,6 +26,8 @@ class BinaryBundleReaderTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
$this->reader = new BinaryBundleReader();
}