Improve auto-paragraph to preserve newlines and handle edge-cases better.
[htmlpurifier.git] / tests / HTMLPurifier / EntityLookupTest.php
blob0e25d9bff38a30da5426c39f364e62565c6b85fd
1 <?php
3 // this page is UTF-8 encoded!
5 class HTMLPurifier_EntityLookupTest extends HTMLPurifier_Harness
8 function test() {
10 $lookup = HTMLPurifier_EntityLookup::instance();
12 // latin char
13 $this->assertIdentical('â', $lookup->table['acirc']);
15 // special char
16 $this->assertIdentical('"', $lookup->table['quot']);
17 $this->assertIdentical('“', $lookup->table['ldquo']);
18 $this->assertIdentical('<', $lookup->table['lt']); // expressed strangely in source file
20 // symbol char
21 $this->assertIdentical('θ', $lookup->table['theta']);