Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44637cc

Browse filesBrowse files
committed
merged branch conf/fix-tests-master (PR symfony#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.
2 parents b1bb27e + 0bde12c commit 44637cc
Copy full SHA for 44637cc

File tree

Expand file treeCollapse file tree

3 files changed

+14
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+14
-0
lines changed

‎src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class IcuResFileDumperTest extends \PHPUnit_Framework_TestCase
1818
{
1919
public function testDump()
2020
{
21+
if (!extension_loaded('mbstring')) {
22+
$this->markTestSkipped('This test requires mbstring to work.');
23+
}
24+
2125
$catalogue = new MessageCatalogue('en');
2226
$catalogue->add(array('foo' => 'bar'));
2327

‎src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ protected function setUp() {
2020
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
2121
$this->markTestSkipped('The "Config" component is not available');
2222
}
23+
24+
if (!extension_loaded('intl')) {
25+
$this->markTestSkipped('This test requires intl extension to work.');
26+
}
27+
2328
}
2429

2530
public function testDatEnglishLoad()

‎src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ protected function setUp() {
2020
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
2121
$this->markTestSkipped('The "Config" component is not available');
2222
}
23+
24+
if (!extension_loaded('intl')) {
25+
$this->markTestSkipped('This test requires intl extension to work.');
26+
}
27+
2328
}
2429

2530
public function testLoad()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.