EntityLookupTest.php 640 B

123456789101112131415161718192021222324252627
  1. <?php
  2. // this page is UTF-8 encoded!
  3. class HTMLPurifier_EntityLookupTest extends HTMLPurifier_Harness
  4. {
  5. function test() {
  6. $lookup = HTMLPurifier_EntityLookup::instance();
  7. // latin char
  8. $this->assertIdentical('â', $lookup->table['acirc']);
  9. // special char
  10. $this->assertIdentical('"', $lookup->table['quot']);
  11. $this->assertIdentical('“', $lookup->table['ldquo']);
  12. $this->assertIdentical('<', $lookup->table['lt']); // expressed strangely in source file
  13. // symbol char
  14. $this->assertIdentical('θ', $lookup->table['theta']);
  15. }
  16. }
  17. // vim: et sw=4 sts=4