Exemple #1
0
 /**
  * Helper wrapper method for fromPunycode
  *
  * @param   string  $punycodeString  The Punycode string to transform.
  *
  * @return string  The UF-8 URL.
  *
  * @see     JUserHelper::fromPunycode()
  * @since   3.4
  */
 public function fromPunycode($punycodeString)
 {
     return JStringPunycode::fromPunycode($punycodeString);
 }
 /**
  * Tests JStringPunycode::fromPunycode
  *
  * @return  void
  *
  * @since   3.2
  */
 public function testFromPunycode()
 {
     $this->assertEquals(JStringPunycode::fromPunycode('http://www.xn----7sblgc4ag8bhcd.xn--p1ai'), 'http://www.джумла-тест.рф', 'Tests idna_convert decoding a UTF8 url in Cyrillic');
     $this->assertEquals(JStringPunycode::fromPunycode('http://xn--au-gr-de-nos-plumes-fzb.fr'), 'http://au-gré-de-nos-plumes.fr', 'Tests idna_convert decoding a UTF8 url in French');
 }