mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
test: add echo translator tests
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the PHPFlasher package.
|
||||
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
||||
*/
|
||||
|
||||
namespace Flasher\Tests\Prime\Translation;
|
||||
|
||||
use Flasher\Prime\Translation\EchoTranslator;
|
||||
use Flasher\Tests\Prime\TestCase;
|
||||
|
||||
class EchoTranslatorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testEchoTranslator()
|
||||
{
|
||||
$translator = new EchoTranslator();
|
||||
|
||||
$this->assertEquals('en', $translator->getLocale());
|
||||
$this->assertEquals('PHPFlasher', $translator->translate('PHPFlasher'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user