Phalcon\Test\Unit\Translate\Adapter\CsvTest::testRuTranslate PHP Method

testRuTranslate() public method

Translate into russian
Since: 2014-11-04
Author: Ivan Zubok ([email protected])
public testRuTranslate ( )
    public function testRuTranslate()
    {
        $this->specify("The key exist with expect with additional params", function () {
            $params = $this->config['ru'];
            $translator = new Csv($params);
            expect($translator->query('Hello!'))->equals('Привет!');
            expect($translator->query('Hello %fname% %mname% %lname%!', ["fname" => "TestFname", "mname" => "TestMname", "lname" => "TestLname"]))->equals('Привет, TestFname TestMname TestLname!');
        });
    }