2006-07-23 21:07:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// this page is UTF-8 encoded!
|
|
|
|
|
2007-08-01 14:06:59 +00:00
|
|
|
class HTMLPurifier_EntityLookupTest extends HTMLPurifier_Harness
|
2006-07-23 21:07:30 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
|
|
|
$lookup = HTMLPurifier_EntityLookup::instance();
|
|
|
|
|
|
|
|
// latin char
|
|
|
|
$this->assertIdentical('â', $lookup->table['acirc']);
|
|
|
|
|
|
|
|
// special char
|
|
|
|
$this->assertIdentical('"', $lookup->table['quot']);
|
|
|
|
$this->assertIdentical('“', $lookup->table['ldquo']);
|
2007-08-16 06:48:24 +00:00
|
|
|
$this->assertIdentical('<', $lookup->table['lt']); // expressed strangely in source file
|
2006-07-23 21:07:30 +00:00
|
|
|
|
|
|
|
// symbol char
|
|
|
|
$this->assertIdentical('θ', $lookup->table['theta']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|