Added some skipifs to prevent fatal errors on missing extensions.

This commit is contained in:
Shein Alexey 2012-03-29 15:19:53 +05:00
parent b1bb27e8da
commit 0bde12c6c0
3 changed files with 14 additions and 0 deletions

View File

@ -18,6 +18,10 @@ class IcuResFileDumperTest extends \PHPUnit_Framework_TestCase
{
public function testDump()
{
if (!extension_loaded('mbstring')) {
$this->markTestSkipped('This test requires mbstring to work.');
}
$catalogue = new MessageCatalogue('en');
$catalogue->add(array('foo' => 'bar'));

View File

@ -20,6 +20,11 @@ class IcuDatFileLoaderTest extends LocalizedTestCase
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
if (!extension_loaded('intl')) {
$this->markTestSkipped('This test requires intl extension to work.');
}
}
public function testDatEnglishLoad()

View File

@ -20,6 +20,11 @@ class IcuResFileLoaderTest extends LocalizedTestCase
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
$this->markTestSkipped('The "Config" component is not available');
}
if (!extension_loaded('intl')) {
$this->markTestSkipped('This test requires intl extension to work.');
}
}
public function testLoad()