mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
TravisCI - install locales before running tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user