Skip to content

Commit

Permalink
Merge pull request #972 from virtualtam/travis/trusty
Browse files Browse the repository at this point in the history
Travis: switch to Ubuntu Trusty build environment
  • Loading branch information
virtualtam authored Sep 19, 2017
2 parents 6aae4bd + b5c33d7 commit 0cba184
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
sudo: false
dist: precise
dist: trusty
language: php
addons:
apt:
packages:
- locales
- language-pack-de
- language-pack-fr
cache:
directories:
- $HOME/.composer/cache
Expand All @@ -18,6 +12,7 @@ php:
install:
- composer self-update
- composer install --prefer-dist
- locale -a
script:
- make clean
- make check_permissions
Expand Down
12 changes: 6 additions & 6 deletions tests/languages/de/UtilsDeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public function testAutoLocaleMultipleFirstValid()
}

/**
* Test autoLocale with multiples value, the second one is valid
* Test autoLocale with multiples value, the second one is available
*/
public function testAutoLocaleMultipleSecondValid()
public function testAutoLocaleMultipleSecondAvailable()
{
$current = setlocale(LC_ALL, 0);
$header = 'pt_BR,fr-fr';
$header = 'mag_IN,fr-fr';
autoLocale($header);
$this->assertEquals('fr_FR.utf8', setlocale(LC_ALL, 0));

Expand All @@ -106,12 +106,12 @@ public function testAutoLocaleBlank()
}

/**
* Test autoLocale with an invalid value: defaults to en_US.
* Test autoLocale with an unavailable value: defaults to en_US.
*/
public function testAutoLocaleInvalid()
public function testAutoLocaleUnavailable()
{
$current = setlocale(LC_ALL, 0);
autoLocale('pt_BR');
autoLocale('mag_IN');
$this->assertEquals('en_US.utf8', setlocale(LC_ALL, 0));

setlocale(LC_ALL, $current);
Expand Down
12 changes: 6 additions & 6 deletions tests/languages/en/UtilsEnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public function testAutoLocaleMultipleFirstValid()
}

/**
* Test autoLocale with multiples value, the second one is valid
* Test autoLocale with multiples value, the second one is available
*/
public function testAutoLocaleMultipleSecondValid()
public function testAutoLocaleMultipleSecondAvailable()
{
$current = setlocale(LC_ALL, 0);
$header = 'pt_BR,fr-fr';
$header = 'mag_IN,fr-fr';
autoLocale($header);
$this->assertEquals('fr_FR.utf8', setlocale(LC_ALL, 0));

Expand All @@ -106,12 +106,12 @@ public function testAutoLocaleBlank()
}

/**
* Test autoLocale with an invalid value: defaults to en_US.
* Test autoLocale with an unavailable value: defaults to en_US.
*/
public function testAutoLocaleInvalid()
public function testAutoLocaleUnavailable()
{
$current = setlocale(LC_ALL, 0);
autoLocale('pt_BR');
autoLocale('mag_IN');
$this->assertEquals('en_US.utf8', setlocale(LC_ALL, 0));

setlocale(LC_ALL, $current);
Expand Down
12 changes: 6 additions & 6 deletions tests/languages/fr/UtilsFrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public function testAutoLocaleMultipleFirstValid()
}

/**
* Test autoLocale with multiples value, the second one is valid
* Test autoLocale with multiples value, the second one is available
*/
public function testAutoLocaleMultipleSecondValid()
public function testAutoLocaleMultipleSecondAvailable()
{
$current = setlocale(LC_ALL, 0);
$header = 'pt_BR,de-de';
$header = 'mag_IN,de-de';
autoLocale($header);
$this->assertEquals('de_DE.utf8', setlocale(LC_ALL, 0));

Expand All @@ -106,12 +106,12 @@ public function testAutoLocaleBlank()
}

/**
* Test autoLocale with an invalid value: defaults to en_US.
* Test autoLocale with an unavailable value: defaults to en_US.
*/
public function testAutoLocaleInvalid()
public function testAutoLocaleUnavailable()
{
$current = setlocale(LC_ALL, 0);
autoLocale('pt_BR');
autoLocale('mag_IN');
$this->assertEquals('en_US.utf8', setlocale(LC_ALL, 0));

setlocale(LC_ALL, $current);
Expand Down

0 comments on commit 0cba184

Please sign in to comment.