TokenFactoryTest.php 411 B

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