Example #1
0
 /**
  * ZF-7937
  */
 public function testTranslationWithoutTranslator()
 {
     $result = $this->helper->direct("test %1\$s", "100");
     $this->assertEquals('test 100', $result);
 }
Example #2
0
 /**
  * @group ZF2-140
  */
 public function testSetTranslatorWithTranslation()
 {
     $trans = new Translator\Translator('arrayAdapter', array('one' => 'eins', "two %1\$s" => "zwei %1\$s", "three %1\$s %2\$s" => "drei %1\$s %2\$s", 'vier%ig' => 'four%'), 'de');
     $this->helper->setTranslator($trans);
 }