Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / AttrTransform / NameTest.php
blob10e12123866402152c9bd411aae40ca8e6720b22
1 <?php
3 class HTMLPurifier_AttrTransform_NameTest extends HTMLPurifier_AttrTransformHarness
6 function setUp() {
7 parent::setUp();
8 $this->obj = new HTMLPurifier_AttrTransform_Name();
11 function testEmpty() {
12 $this->assertResult( array() );
15 function testTransformNameToID() {
16 $this->assertResult(
17 array('name' => 'free'),
18 array('id' => 'free')
22 function testExistingIDOverridesName() {
23 $this->assertResult(
24 array('name' => 'tryit', 'id' => 'tobad'),
25 array('id' => 'tobad')
31 // vim: et sw=4 sts=4