TokenFactoryTest.php 414 B

1234567891011121314151617
  1. <?php
  2. class HTMLPurifier_TokenFactoryTest extends HTMLPurifier_Harness
  3. {
  4. public function test()
  5. {
  6. $factory = new HTMLPurifier_TokenFactory();
  7. $regular = new HTMLPurifier_Token_Start('a', array('href' => 'about:blank'));
  8. $generated = $factory->createStart('a', array('href' => 'about:blank'));
  9. $this->assertIdentical($regular, $generated);
  10. }
  11. }
  12. // vim: et sw=4 sts=4