You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EntityLookupTest.php 650B

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