Release 2.0.1, merged in 1181 to HEAD.
[htmlpurifier.git] / tests / HTMLPurifier / DefinitionCache / DecoratorHarness.php
blob78c753a31e4282aec264570fe9a9e4ecd12035da
1 <?php
3 require_once 'HTMLPurifier/DefinitionCacheHarness.php';
4 require_once 'HTMLPurifier/DefinitionCache/Decorator/Memory.php';
6 generate_mock_once('HTMLPurifier_DefinitionCache');
8 class HTMLPurifier_DefinitionCache_DecoratorHarness extends HTMLPurifier_DefinitionCacheHarness
11 function setup() {
12 $this->mock = new HTMLPurifier_DefinitionCacheMock();
13 $this->mock->type = 'Test';
14 $this->cache = $this->cache->decorate($this->mock);
15 $this->def = $this->generateDefinition();
16 $this->config = $this->generateConfigMock();
19 function teardown() {
20 unset($this->mock);
21 unset($this->cache);