Skip to content
Browse files

Added some skipifs to prevent fatal errors on missing extensions.

  • Loading branch information...
1 parent b1bb27e commit 0bde12c6c04e37fe71dd3ec4c0ed9fd9ee526283 @conf committed Mar 29, 2012
View
4 src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php
@@ -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
5 src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php
@@ -20,6 +20,11 @@ protected function setUp() {
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
5 src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php
@@ -20,6 +20,11 @@ protected function setUp() {
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()

0 comments on commit 0bde12c

Please sign in to comment.
Something went wrong with that request. Please try again.