summaryrefslogtreecommitdiff
path: root/tests/html_to_text.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-02-15 13:34:59 +0000
committeralecpl <alec@alec.pl>2012-02-15 13:34:59 +0000
commit63f23ffd6a7e78304309f221799e3a9a3403748c (patch)
tree5c46a6b41af88797aceb8b429924ed8ccf3257de /tests/html_to_text.php
parentb138a9b56fccbcfa28df68316040f1397a345c64 (diff)
- One test more
Diffstat (limited to 'tests/html_to_text.php')
-rw-r--r--tests/html_to_text.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/html_to_text.php b/tests/html_to_text.php
index 0838719cd..aabc1a800 100644
--- a/tests/html_to_text.php
+++ b/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)");
}
}