summaryrefslogtreecommitdiff
path: root/tests/html_to_text.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-02-15 13:28:58 +0000
committeralecpl <alec@alec.pl>2012-02-15 13:28:58 +0000
commitb138a9b56fccbcfa28df68316040f1397a345c64 (patch)
treed759f8b86705e55d75857174d6b17e3e6b197fb5 /tests/html_to_text.php
parent43c40f043cce8bfd316e0670919513b50b1e98f1 (diff)
- Add two small tests for html2text converter
Diffstat (limited to 'tests/html_to_text.php')
-rw-r--r--tests/html_to_text.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/html_to_text.php b/tests/html_to_text.php
index c1d40d930..0838719cd 100644
--- a/tests/html_to_text.php
+++ b/tests/html_to_text.php
@@ -32,6 +32,16 @@ class rcube_test_html2text extends UnitTestCase
'in' => '&amp;quot;',
'out' => '&quot;',
),
+ 3 => array(
+ 'title' => 'HTML entity in STRONG tag',
+ 'in' => '<strong>&#347;</strong>', // ś
+ 'out' => 'Ś', // upper ś
+ ),
+ 4 => array(
+ 'title' => 'STRONG tag to upper-case conversion',
+ 'in' => '<strong>ś</strong>',
+ 'out' => 'Ś',
+ ),
);
$ht = new html2text(null, false, false);