Browse Source

[Form] marked some tests as skipped when intl is not available

Fabien Potencier 13 years ago
parent
commit
408414c252
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php

+ 4 - 0
tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php

@@ -26,6 +26,10 @@ abstract class AbstractLayoutTest extends \PHPUnit_Framework_TestCase
 
     protected function setUp()
     {
+        if (!extension_loaded('intl')) {
+            $this->markTestSkipped('The "intl" extension is not available');
+        }
+
         \Locale::setDefault('en');
 
         $this->csrfProvider = $this->getMock('Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface');