Skip to content

Commit ade89a7

Browse files
committed
Add UTF8 test
1 parent ce38091 commit ade89a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/TransphpormTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
use Transphporm\Builder;
88
class TransphpormTest extends PHPUnit_Framework_TestCase {
99

10+
public function testUTF8() {
11+
$xml = "<p>this is half english and половина России &</p>";
12+
$template = new Builder($xml);
13+
14+
$this->assertEquals('<p>this is half english and половина России &</p>', $template->output()->body);
15+
}
16+
1017
public function testLoadHTMLWithEntities() {
1118
$template = '<div>&nbsp; &lt;</div>';
1219

0 commit comments

Comments
 (0)