1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-10 09:16:20 +02:00

[1.7.0] Convert table module to new format. Add support for literal object $contents variable.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1045 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-05-12 20:26:26 +00:00
parent eaea42f827
commit ed73fdd5b8
4 changed files with 63 additions and 59 deletions

View File

@ -83,6 +83,13 @@ class HTMLPurifier_HTMLModuleTest extends UnitTestCase
array('optional', 'a | b | c')
);
// object pass-through
generate_mock_once('HTMLPurifier_AttrDef');
$this->assertIdentical(
$module->parseContents(new HTMLPurifier_AttrDefMock()),
array(null, null)
);
}
function test_mergeInAttrIncludes() {