Release 2.1.0, merged in 1313 to HEAD.
[htmlpurifier.git] / tests / HTMLPurifier / TokenFactoryTest.php
blob54be5305111e1a22a7318ac82ce5e41066a14f55
1 <?php
3 require_once 'HTMLPurifier/TokenFactory.php';
5 class HTMLPurifier_TokenFactoryTest extends HTMLPurifier_Harness
7 public function test() {
9 $factory = new HTMLPurifier_TokenFactory();
11 $regular = new HTMLPurifier_Token_Start('a', array('href' => 'about:blank'));
12 $generated = $factory->createStart('a', array('href' => 'about:blank'));
14 $this->assertIdentical($regular, $generated);