2006-08-15 20:19:16 +00:00
|
|
|
<?php
|
|
|
|
|
2007-08-01 14:06:59 +00:00
|
|
|
class HTMLPurifier_TokenFactoryTest extends HTMLPurifier_Harness
|
2006-08-15 20:19:16 +00:00
|
|
|
{
|
2013-07-16 11:56:14 +00:00
|
|
|
public function test()
|
|
|
|
{
|
2006-08-15 20:19:16 +00:00
|
|
|
$factory = new HTMLPurifier_TokenFactory();
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-15 20:19:16 +00:00
|
|
|
$regular = new HTMLPurifier_Token_Start('a', array('href' => 'about:blank'));
|
|
|
|
$generated = $factory->createStart('a', array('href' => 'about:blank'));
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-05-05 20:17:04 +00:00
|
|
|
$this->assertIdentical($regular, $generated);
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-15 20:19:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|