summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-15 13:34:59 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-15 13:34:59 +0000
commit99725d6eeb77351c35c4f8dd78df1c112debdcf2 (patch)
tree461232ac7968d976eb485907f715ff02241646d2 /roundcubemail
parent21699a48caee624f5870939735327e142fad42ee (diff)
- One test more
git-svn-id: https://svn.roundcube.net/trunk@5888 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/tests/html_to_text.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/tests/html_to_text.php b/roundcubemail/tests/html_to_text.php
index 0838719cd..aabc1a800 100644
--- a/roundcubemail/tests/html_to_text.php
+++ b/roundcubemail/tests/html_to_text.php
@@ -42,14 +42,19 @@ class rcube_test_html2text extends UnitTestCase
'in' => '<strong>ś</strong>',
'out' => 'Ś',
),
+ 5 => array(
+ 'title' => 'STRONG inside B tag',
+ 'in' => '<b><strong>&#347;</strong></b>',
+ 'out' => 'Ś',
+ ),
);
$ht = new html2text(null, false, false);
- foreach ($data as $item) {
+ foreach ($data as $idx => $item) {
$ht->set_html($item['in']);
$res = $ht->get_text();
- $this->assertEqual($item['out'], $res, $item['title']);
+ $this->assertEqual($item['out'], $res, $item['title'] . "($idx)");
}
}