Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / AttrTransform / NameTest.php
blob714f4e50c2706a657d1c287bdd2d04ba643d615a
1 <?php
3 class HTMLPurifier_AttrTransform_NameTest extends HTMLPurifier_AttrTransformHarness
6 public function setUp()
8 parent::setUp();
9 $this->obj = new HTMLPurifier_AttrTransform_Name();
12 public function testEmpty()
14 $this->assertResult( array() );
17 public function testTransformNameToID()
19 $this->assertResult(
20 array('name' => 'free'),
21 array('id' => 'free')
25 public function testExistingIDOverridesName()
27 $this->assertResult(
28 array('name' => 'tryit', 'id' => 'tobad'),
29 array('id' => 'tobad')
35 // vim: et sw=4 sts=4