3 class HTMLPurifier_AttrDef_HTML_LinkTypesTest
extends HTMLPurifier_AttrDefHarness
6 public function testNull()
8 $this->def
= new HTMLPurifier_AttrDef_HTML_LinkTypes('rel');
9 $this->config
->set('Attr.AllowedRel', array('nofollow', 'foo'));
11 $this->assertDef('', false);
12 $this->assertDef('nofollow', true);
13 $this->assertDef('nofollow foo', true);
14 $this->assertDef('nofollow bar', 'nofollow');
15 $this->assertDef('bar', false);