예제 #1
0
 public function testSpecialChars()
 {
     $adapter = new Adapter\Csv(dirname(__FILE__) . '/_files/translation_specialchars.csv', 'en');
     $this->assertEquals('Message 1 (en)', $adapter->translate('Message 1'));
     $this->assertEquals('Message 1 (en)', $adapter->_('Message 1'));
     $this->assertEquals('Message 6;" (en)', $adapter->translate('Message 6'));
     $this->assertEquals('Message 7 (en)', $adapter->translate('Message ;" 7'));
 }