Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

28 lines
650B

  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