isoDescrambler.php 374 B

1234567891011121314
  1. <?php
  2. /**
  3. * @group formatting
  4. */
  5. class Test_WP_ISO_Descrambler extends WP_UnitTestCase {
  6. /*
  7. * Decodes text in RFC2047 "Q"-encoding, e.g.
  8. * =?iso-8859-1?q?this=20is=20some=20text?=
  9. */
  10. function test_decodes_iso_8859_1_rfc2047_q_encoding() {
  11. $this->assertEquals("this is some text", wp_iso_descrambler("=?iso-8859-1?q?this=20is=20some=20text?="));
  12. }
  13. }