diff --git a/tests/testing_html/sample.html b/tests/testing_html/sample.html index a853422..d60b3a9 100644 --- a/tests/testing_html/sample.html +++ b/tests/testing_html/sample.html @@ -1,5 +1,6 @@

one paragraph with special characters: äöüľščťžýáíéäňú©«®™»

one paragraph with a
break line

+

one paragraph with html entities: &¢©®'´ˆ˜<>

and here we have some link break line

one paragraph with an not existing imageimage

hello world this is simple html

nested 1
nested 2
nested 3
diff --git a/translators/file/tmgmt_file.test b/translators/file/tmgmt_file.test index 82d9a60..2920ff4 100644 --- a/translators/file/tmgmt_file.test +++ b/translators/file/tmgmt_file.test @@ -119,9 +119,10 @@ class TMGMTFileTestCase extends TMGMTBaseTestCase { $job = $this->importTranslatedFile($job); $text = $this->findTranslationText($job->getData()); - // Make sure we have non malformed special characters present in the - // translation text. + // Make sure we have non malformed special characters and html entities + // present in the translation text. $this->assertTrue(strpos($text, 'äöüľščťžýáíéäňú©«®™»') !== FALSE); + $this->assertTrue(strpos($text, '&¢©®'´ˆ˜<>') !== FALSE); $reader = new XMLReader(); $reader->XML('' . $text . ''); while ($reader->read()) {