Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / HTMLModule / NameTest.php
blob9152710bd14dd928bdf7538bdbef59b8de498508
1 <?php
3 class HTMLPurifier_HTMLModule_NameTest extends HTMLPurifier_HTMLModuleHarness
6 function setUp() {
7 parent::setUp();
10 function testBasicUse() {
11 $this->config->set('Attr.EnableID', true);
12 $this->assertResult(
13 '<a name="foo">bar</a>'
17 function testCDATA() {
18 $this->config->set('HTML.Attr.Name.UseCDATA', true);
19 $this->assertResult(
20 '<a name="2">Baz</a><a name="2">Bar</a>'
24 function testCDATAWithHeavyTidy() {
25 $this->config->set('HTML.Attr.Name.UseCDATA', true);
26 $this->config->set('HTML.TidyLevel', 'heavy');
27 $this->assertResult('<a name="2">Baz</a>');
32 // vim: et sw=4 sts=4