Fix problem where stacked AttrTransforms clobber each other.
[htmlpurifier.git] / tests / HTMLPurifier / EntityLookupTest.php
blobe715f64a24c5afd50e11cb74b102bbb33bcf8a26
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']);
27 // vim: et sw=4 sts=4