Skip to content

Commit

Permalink
Added some skipifs to prevent fatal errors on missing extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shein Alexey committed Mar 29, 2012
1 parent b1bb27e commit 0bde12c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Expand Up @@ -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'));

Expand Down
Expand Up @@ -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()
Expand Down
Expand Up @@ -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()
Expand Down

0 comments on commit 0bde12c

Please sign in to comment.