Browse Source

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

Fabien Potencier 13 years ago
parent
commit
5404a46c45
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/Symfony/Tests/Component/HttpFoundation/SessionTest.php

+ 4 - 0
tests/Symfony/Tests/Component/HttpFoundation/SessionTest.php

@@ -166,6 +166,10 @@ class SessionTest extends \PHPUnit_Framework_TestCase
 
     public function testLocale()
     {
+        if (!extension_loaded('intl')) {
+            $this->markTestSkipped('The "intl" extension is not available');
+        }
+
         $this->assertSame('en', $this->session->getLocale(), 'default locale is en');
         $this->assertSame('en', \Locale::getDefault(), '\Locale::getDefault() is en');