3 class HTMLPurifier_Injector_DisplayLinkURITest
extends HTMLPurifier_InjectorHarness
6 public function setup()
9 $this->config
->set('AutoFormat.DisplayLinkURI', true);
12 public function testBasicLink()
15 '<a href="http://malware.example.com">Don\'t go here!</a>',
16 '<a>Don\'t go here!</a> (http://malware.example.com)'
20 public function testEmptyLink()
23 '<a>Don\'t go here!</a>',
24 '<a>Don\'t go here!</a>'
27 public function testEmptyText()
30 '<a href="http://malware.example.com"></a>',
31 '<a></a> (http://malware.example.com)'