You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
34 lines
935 B
PHP
34 lines
935 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Flasher\Tests\Prime\Translation\Language;
|
|
|
|
use Flasher\Prime\Translation\Language\Arabic;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class ArabicTest extends TestCase
|
|
{
|
|
/**
|
|
* Function to test the translations method of the Arabic 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, Arabic::translations());
|
|
}
|
|
}
|