Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / Injector / DisplayLinkURITest.php
blob03c097e806c47874d2aac8f4f3a7dddd2b64c3fc
1 <?php
3 class HTMLPurifier_Injector_DisplayLinkURITest extends HTMLPurifier_InjectorHarness
6 public function setup()
8 parent::setup();
9 $this->config->set('AutoFormat.DisplayLinkURI', true);
12 public function testBasicLink()
14 $this->assertResult(
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()
22 $this->assertResult(
23 '<a>Don\'t go here!</a>',
24 '<a>Don\'t go here!</a>'
27 public function testEmptyText()
29 $this->assertResult(
30 '<a href="http://malware.example.com"></a>',
31 '<a></a> (http://malware.example.com)'
37 // vim: et sw=4 sts=4