mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 09:16:20 +02:00
More refactoring: for interest of unit testing, default doctypes were moved to an initialize() method which could optionally be omitted. Disable collection aliases in favor of doctype aliases.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@761 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@ -111,16 +111,6 @@ class HTMLPurifier_HTMLModuleManagerTest extends UnitTestCase
|
||||
'HTML' => array('Text', 'Hypertext', 'Legacy')
|
||||
)
|
||||
);
|
||||
$this->assertProcessCollections( // aliasing!
|
||||
array(
|
||||
'HTML' => 'XHTML',
|
||||
'XHTML' => array('Text', 'Hypertext')
|
||||
),
|
||||
array(
|
||||
'HTML' => array('Text', 'Hypertext'),
|
||||
'XHTML' => array('Text', 'Hypertext')
|
||||
)
|
||||
);
|
||||
$this->assertProcessCollections( // nested inclusions
|
||||
array(
|
||||
'Full' => array(array('Minimal'), 'Hypertext'),
|
||||
@ -171,21 +161,6 @@ class HTMLPurifier_HTMLModuleManagerTest extends UnitTestCase
|
||||
)
|
||||
);
|
||||
|
||||
$this->expectError('XHTML collection is alias to undefined Foobar collection');
|
||||
$this->manager->processCollections(
|
||||
$c = array(
|
||||
'XHTML' => 'Foobar'
|
||||
)
|
||||
);
|
||||
|
||||
$this->expectError('Cannot alias XHTML collection to alias');
|
||||
$this->manager->processCollections(
|
||||
$c = array(
|
||||
'XHTML' => 'Foobar',
|
||||
'Foobar' => 'HTML',
|
||||
'HTML' => array()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user