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

This commit is contained in:
Fabien Potencier 2011-10-26 14:23:39 +02:00
parent 3043fa0878
commit 408414c252

View File

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