Skip to content

Commit

Permalink
[HttpFoundation] marked some tests as skipped when intl is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 26, 2011
1 parent 408414c commit 5404a46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Symfony/Tests/Component/HttpFoundation/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ public function testSave()

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

Expand Down

0 comments on commit 5404a46

Please sign in to comment.