mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
1102dc6e27
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@921 48356398-32a2-884e-a903-53898d9a118a
28 lines
643 B
PHP
28 lines
643 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/AttrTransform/Name.php';
|
|
require_once 'HTMLPurifier/AttrTransformHarness.php';
|
|
|
|
class HTMLPurifier_AttrTransform_NameTest extends HTMLPurifier_AttrTransformHarness
|
|
{
|
|
|
|
function setUp() {
|
|
parent::setUp();
|
|
$this->obj = new HTMLPurifier_AttrTransform_Name();
|
|
}
|
|
|
|
function test() {
|
|
$this->assertResult( array() );
|
|
$this->assertResult(
|
|
array('name' => 'free'),
|
|
array('id' => 'free')
|
|
);
|
|
$this->assertResult(
|
|
array('name' => 'tryit', 'id' => 'tobad'),
|
|
array('id' => 'tobad')
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|