Skip to content

Commit

Permalink
Skip tests if da_DK doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 11, 2017
1 parent b12452c commit f03222a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestCase/Database/Type/TimeTypeTest.php
Expand Up @@ -220,6 +220,9 @@ public function testMarshalWithLocaleParsing()
*/
public function testMarshalWithLocaleParsingDanishLocale()
{
$updated = setlocale(LC_COLLATE, 'da_DK.utf8');
$this->skipIf($updated === false, 'Could not set locale to da_DK.utf8, skipping test.');

I18n::locale('da_DK');
$this->type->useLocaleParser();
$expected = new Time('03:20:00');
Expand Down

0 comments on commit f03222a

Please sign in to comment.