Release 2.1.0, merged in 1313 to HEAD.
[htmlpurifier.git] / tests / HTMLPurifier / EntityLookupTest.php
blobf50ee611cbd6a18651bd9317263a370714ef567b
1 <?php
3 // this page is UTF-8 encoded!
5 require_once 'HTMLPurifier/EntityLookup.php';
7 class HTMLPurifier_EntityLookupTest extends HTMLPurifier_Harness
10 function test() {
12 $lookup = HTMLPurifier_EntityLookup::instance();
14 // latin char
15 $this->assertIdentical('â', $lookup->table['acirc']);
17 // special char
18 $this->assertIdentical('"', $lookup->table['quot']);
19 $this->assertIdentical('“', $lookup->table['ldquo']);
20 $this->assertIdentical('<', $lookup->table['lt']); //expressed strangely
22 // symbol char
23 $this->assertIdentical('θ', $lookup->table['theta']);