Files
php-flasher/tests/Prime/Translation/Language/RussianTest.php
T
2024-04-09 07:57:01 +00:00

34 lines
1007 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
declare(strict_types=1);
namespace Flasher\Tests\Prime\Translation\Language;
use Flasher\Prime\Translation\Language\Russian;
use PHPUnit\Framework\TestCase;
final class RussianTest extends TestCase
{
/**
* Function to test the translations method of the Russian class.
*/
public function testTranslations(): void
{
$expectedTranslations = [
'success' => 'Успех',
'error' => 'Ошибка',
'warning' => 'Предупреждение',
'info' => 'Информация',
'The resource was created' => ':resource был создан',
'The resource was updated' => ':resource был обновлен',
'The resource was saved' => ':resource был сохранен',
'The resource was deleted' => ':resource был удален',
'resource' => 'ресурс',
];
$this->assertSame($expectedTranslations, Russian::translations());
}
}