Make all of the tests work on all PHP versions.
[htmlpurifier.git] / tests / HTMLPurifier / DefinitionCache / DecoratorHarness.php
blob64951a3edcc1503c7d51d8ec9d0a0b6eda4cd511
1 <?php
3 generate_mock_once('HTMLPurifier_DefinitionCache');
5 class HTMLPurifier_DefinitionCache_DecoratorHarness extends HTMLPurifier_DefinitionCacheHarness
8 function setup() {
9 $this->mock = new HTMLPurifier_DefinitionCacheMock();
10 $this->mock->type = 'Test';
11 $this->cache = $this->cache->decorate($this->mock);
12 $this->def = $this->generateDefinition();
13 $this->config = $this->generateConfigMock();
16 function teardown() {
17 unset($this->mock);
18 unset($this->cache);
23 // vim: et sw=4 sts=4