File: SupportedLocaleTest.php

package info (click to toggle)
php-giggsey-locale 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,160 kB
  • sloc: php: 53,967; xml: 61; makefile: 37
file content (23 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace Giggsey\Locale\Tests;

use Giggsey\Locale\Locale;
use PHPUnit\Framework\TestCase;

class SupportedLocaleTest extends TestCase
{
    public function testGettingSupportedLocales(): void
    {
        $list = Locale::getSupportedLocales();

        $this->assertIsArray($list);

        $this->assertContains('en', $list);
        $this->assertContains('zu', $list);
        $this->assertContains('es', $list);
        $this->assertContains('es-mx', $list);
    }
}