Ver código fonte

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

Fabien Potencier 13 anos atrás
pai
commit
408414c252

+ 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');