Пример #1
0
 /**
  * Write text
  *
  * @param string $text
  * @return string
  */
 protected function writeText($text)
 {
     return StringElement::toUnicode($text);
 }
Пример #2
0
 /**
  * Test unicode conversion
  */
 public function testToUnicode()
 {
     $this->assertEquals('a', StringElement::toUnicode('a'));
     $this->assertEquals('\\uc0{\\u8364}', StringElement::toUnicode('€'));
     $this->assertEquals('\\uc0{\\u233}', StringElement::toUnicode('é'));
 }