mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-04 21:28:06 +02:00
[1.7.0] Factor out caching of definitions to DefinitionCache, hook in CSS, add a bunch of todos for this functionality. Attr namespace no longer affects HTMLDefinition.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1093 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
14
tests/HTMLPurifier/DefinitionCacheTest.php
Normal file
14
tests/HTMLPurifier/DefinitionCacheTest.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require_once 'HTMLPurifier/DefinitionCache.php';
|
||||
|
||||
class HTMLPurifier_DefinitionCacheTest extends UnitTestCase
|
||||
{
|
||||
function test_create() {
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$cache = HTMLPurifier_DefinitionCache::create('Test', $config);
|
||||
$this->assertEqual($cache, new HTMLPurifier_DefinitionCache_Serializer('Test'));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user