mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 05:11:52 +00:00
Remove expectations from assertOutput in URITest.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1329 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
cf257cabde
commit
b03a44abff
@ -240,17 +240,13 @@ class HTMLPurifier_AttrDef_URITest extends HTMLPurifier_AttrDefHarness
|
||||
$this->prepareCommon($config, $context);
|
||||
$scheme =& $this->generateSchemeMock();
|
||||
$components = array($userinfo, $host, $port, $path, $query, '*', '*');
|
||||
$scheme->expectOnce('validateComponents');
|
||||
$scheme->setReturnValue('validateComponents', $components);
|
||||
|
||||
$def = new HTMLPurifier_AttrDef_URI();
|
||||
// dummy URI is passed as input, MUST NOT HAVE FRAGMENT
|
||||
$def = new HTMLPurifier_AttrDef_URI();
|
||||
$result_uri = $def->validate('http://example.com/', $config, $context);
|
||||
|
||||
$this->assertEqual($result_uri, $expect_uri);
|
||||
|
||||
$scheme->tally();
|
||||
|
||||
}
|
||||
|
||||
function testOutputRegular() {
|
||||
|
Loading…
Reference in New Issue
Block a user