Release 2.0.1, merged in 1181 to HEAD.
[htmlpurifier.git] / tests / HTMLPurifier / AttrTransform / NameTest.php
blob30e9e58bba6552d292c934adb62cbb020448d96c
1 <?php
3 require_once 'HTMLPurifier/AttrTransform/Name.php';
4 require_once 'HTMLPurifier/AttrTransformHarness.php';
6 class HTMLPurifier_AttrTransform_NameTest extends HTMLPurifier_AttrTransformHarness
9 function setUp() {
10 parent::setUp();
11 $this->obj = new HTMLPurifier_AttrTransform_Name();
14 function test() {
15 $this->assertResult( array() );
16 $this->assertResult(
17 array('name' => 'free'),
18 array('id' => 'free')
20 $this->assertResult(
21 array('name' => 'tryit', 'id' => 'tobad'),
22 array('id' => 'tobad')