[HttpFoundation] marked some tests as skipped when intl is not available
This commit is contained in:
parent
408414c252
commit
5404a46c45
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user