3 class HTMLPurifier_URIFilter_DisableResourcesTest
extends HTMLPurifier_URIFilterHarness
6 public function setUp()
9 $this->filter
= new HTMLPurifier_URIFilter_DisableResources();
11 $this->context
->register('EmbeddedURI', $var);
14 public function testRemoveResource()
16 $this->assertFiltering('/foo/bar', false);
19 public function testPreserveRegular()
21 $this->context
->destroy('EmbeddedURI'); // undo setUp
22 $this->assertFiltering('/foo/bar');