mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-13 09:34:01 +02:00
Classname() constructors to __construct() constructors, as per SimpleTest. Also normalized ppp declarations; no public declaration for test methods, public/protected for the rest
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1663 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -9,7 +9,7 @@ class HTMLPurifier_URIHarness extends HTMLPurifier_Harness
|
||||
* @param &$expect_uri Reference to string expectation URI
|
||||
* @note If $expect_uri is false, it will stay false
|
||||
*/
|
||||
function prepareURI(&$uri, &$expect_uri) {
|
||||
protected function prepareURI(&$uri, &$expect_uri) {
|
||||
$parser = new HTMLPurifier_URIParser();
|
||||
if ($expect_uri === true) $expect_uri = $uri;
|
||||
$uri = $parser->parse($uri);
|
||||
@@ -21,7 +21,7 @@ class HTMLPurifier_URIHarness extends HTMLPurifier_Harness
|
||||
/**
|
||||
* Generates a URI object from the corresponding string
|
||||
*/
|
||||
function createURI($uri) {
|
||||
protected function createURI($uri) {
|
||||
$parser = new HTMLPurifier_URIParser();
|
||||
return $parser->parse($uri);
|
||||
}
|
||||
|
Reference in New Issue
Block a user