diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-11 10:58:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-11 10:58:22 +0000 |
commit | 5fcf1eda32adf4851b40360bc8df1157bbdeea54 (patch) | |
tree | 8de9d32df13f75f64f1495b7d35717c2c46bf4cf /modules/simpletest/tests | |
parent | 3f83c075a4a52887dc7cc7478356c97bea958f71 (diff) | |
download | brdo-5fcf1eda32adf4851b40360bc8df1157bbdeea54.tar.gz brdo-5fcf1eda32adf4851b40360bc8df1157bbdeea54.tar.bz2 |
- Patch #878408 by pwolanin, Damien Tournoud: replace decode_entities() with built-in html_entity_decode().
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/unicode.test | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/simpletest/tests/unicode.test b/modules/simpletest/tests/unicode.test index cdae50955..6e39d11a4 100644 --- a/modules/simpletest/tests/unicode.test +++ b/modules/simpletest/tests/unicode.test @@ -218,36 +218,6 @@ class UnicodeUnitTest extends DrupalWebTestCase { } } - function testDecodeEntitiesExclusion() { - $testcase = array( - 'Drupal' => 'Drupal', - '<script>' => '<script>', - '<script>' => '<script>', - '<script>' => '<script>', - '&lt;script&gt;' => '&lt;script&gt;', - '"' => '"', - '"' => '"', - '&#34;' => '&#34;', - '"' => '"', - '&quot;' => '&quot;', - "'" => "'", - ''' => "'", - '&#39;' => '&#39;', - '©' => '©', - '©' => '©', - '©' => '©', - '→' => '→', - '→' => '→', - '➼' => '➼', - '➼' => '➼', - '€' => '€', - ); - $exclude = array('<', '&', '"'); - foreach ($testcase as $input => $output) { - $this->assertIdentical(decode_entities($input, $exclude), $output, t('Make sure the decoded entity of %input, excluding %excludes, is %output', array('%input' => $input, '%excludes' => implode(',', $exclude), '%output' => $output))); - } - } - /** * Tests truncate_utf8(). */ |