aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/URIFilterHarness.php
blob: 165ae6788473e6628f90422c941a339737fa0da1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class HTMLPurifier_URIFilterHarness extends HTMLPurifier_URIHarness
{

    protected function assertFiltering($uri, $expect_uri = true) {
        $this->prepareURI($uri, $expect_uri);
        $this->filter->prepare($this->config, $this->context);
        $result = $this->filter->filter($uri, $this->config, $this->context);
        $this->assertEitherFailOrIdentical($result, $uri, $expect_uri);
    }

}

// vim: et sw=4 sts=4