merged branch conf/fix-tests-master (PR #3722)
Commits
-------
0bde12c
Added some skipifs to prevent fatal errors on missing extensions.
Discussion
----------
Added some skipifs to prevent fatal errors on missing extensions.
2.0 branch is ok, this should fix errors on master.
This commit is contained in:
commit
44637cc887
@ -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'));
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user