mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 09:16:20 +02:00
[1.7.0] Fix bug in HTMLPurifier_Harness that causes certain aspects of $input to change after parsing
- Add makeLookup() convenience function to HTMLModule - Relocate SGML exclusion comment - Add preliminary Bdo module test git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1049 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@ -121,6 +121,30 @@ class HTMLPurifier_HTMLModuleTest extends UnitTestCase
|
||||
|
||||
}
|
||||
|
||||
function test_makeLookup() {
|
||||
|
||||
$module = new HTMLPurifier_HTMLModule();
|
||||
|
||||
$this->assertIdentical(
|
||||
$module->makeLookup('foo'),
|
||||
array('foo' => true)
|
||||
);
|
||||
$this->assertIdentical(
|
||||
$module->makeLookup(array('foo')),
|
||||
array('foo' => true)
|
||||
);
|
||||
|
||||
$this->assertIdentical(
|
||||
$module->makeLookup('foo', 'two'),
|
||||
array('foo' => true, 'two' => true)
|
||||
);
|
||||
$this->assertIdentical(
|
||||
$module->makeLookup(array('foo', 'two')),
|
||||
array('foo' => true, 'two' => true)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user