diff --git a/tests/GlossTest.php b/tests/GlossTest.php index b39bac2..40cb291 100644 --- a/tests/GlossTest.php +++ b/tests/GlossTest.php @@ -211,7 +211,12 @@ class GlossTest extends TestCase ])); $this->assertSame('There are no apples', gloss()->choice('test.apples', 0)); - $this->assertSame('There are 2 apples', gloss()->choice('test.apples', 2)); + $this->assertSame('There are 5 apples', gloss()->choice('test.apples', 5)); + + gloss()->setLocale('cs'); + + $this->assertSame('Není tam žádné jablko', gloss()->choice('test.apples', 0)); + $this->assertSame('Je tam 5 jablek', gloss()->choice('test.apples', 5)); } protected function addMessage(string $key, string $value, string $locale = 'en', string $group = 'test', string $namespace = null): void