PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / HTML / LinkTypesTest.php
blobad30aa782355fbc79d33921372a2e54c6543ac15
1 <?php
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);
21 // vim: et sw=4 sts=4