TravisCI - install locales before running tests

This commit is contained in:
Meritoo
2018-04-03 16:58:54 +02:00
parent 129b75ea93
commit 1cbc87222f
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ php:
- 7.0
- 7.1
before_install:
- sudo apt-get install locales
- sed -i 's/^# de_DE/de_DE/g; s/^# es_ES/es_ES/g; s/^# en_GB/en_GB/g; s/^# en_US/en_US/g; s/^# fr_FR/fr_FR/g; s/^# it_IT/it_IT/g; s/^# pl_PL/pl_PL/g; s/^# ru_RU/ru_RU/g;' /etc/locale.gen && locale-gen
install:
- composer install

View File

@@ -11,6 +11,7 @@ namespace Meritoo\Common\Test\Utilities;
use Generator;
use Meritoo\Common\Test\Base\BaseTestCase;
use Meritoo\Common\Utilities\Locale;
use ReflectionException;
/**
* Test case of the useful locale methods
@@ -20,6 +21,9 @@ use Meritoo\Common\Utilities\Locale;
*/
class LocaleTest extends BaseTestCase
{
/**
* @throws ReflectionException
*/
public function testConstructor()
{
static::assertHasNoConstructor(Locale::class);