Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jan 11, 2017
1 parent 3683b5c commit 40aa716
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/Test/I18nTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Test;

use DeimosTest\I18n;
use DeimosTest\I18nSave;
use DeimosTest\I18nPrefix;
use DeimosTest\I18nSave;

class I18nTest extends \PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -62,6 +62,17 @@ public function testI18nPrefix()
$this->assertEquals($this->i18nPrefix->t('hello', null, false), null);
$this->assertEquals($this->i18nPrefix->t('world'), 'мир');
$this->assertEquals($this->i18nPrefix->t('deimos', 'деймос'), 'деймос');

$this->i18nPrefix->stream([
'ya' => 'я',
'i' => 'я',
], false);

$this->assertEquals($this->i18nPrefix->t('ya'), null);
$this->assertEquals($this->i18nPrefix->t('ya', null, false), 'я');

$this->assertEquals($this->i18nPrefix->t('i'), null);
$this->assertEquals($this->i18nPrefix->t('i', null, false), 'я');
}

public function testI18nSave()
Expand Down

0 comments on commit 40aa716

Please sign in to comment.