diff options
Diffstat (limited to '3rdparty/htmlpurifier/tests/HTMLPurifier/DefinitionCache/DecoratorTest.php')
-rw-r--r-- | 3rdparty/htmlpurifier/tests/HTMLPurifier/DefinitionCache/DecoratorTest.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/3rdparty/htmlpurifier/tests/HTMLPurifier/DefinitionCache/DecoratorTest.php b/3rdparty/htmlpurifier/tests/HTMLPurifier/DefinitionCache/DecoratorTest.php deleted file mode 100644 index 4cb2c71bb..000000000 --- a/3rdparty/htmlpurifier/tests/HTMLPurifier/DefinitionCache/DecoratorTest.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php
-
-class HTMLPurifier_DefinitionCache_DecoratorTest extends HTMLPurifier_DefinitionCacheHarness
-{
-
- function test() {
-
- generate_mock_once('HTMLPurifier_DefinitionCache');
- $mock = new HTMLPurifier_DefinitionCacheMock();
- $mock->type = 'Test';
-
- $cache = new HTMLPurifier_DefinitionCache_Decorator();
- $cache = $cache->decorate($mock);
-
- $this->assertIdentical($cache->type, $mock->type);
-
- $def = $this->generateDefinition();
- $config = $this->generateConfigMock();
-
- $mock->expectOnce('add', array($def, $config));
- $cache->add($def, $config);
-
- $mock->expectOnce('set', array($def, $config));
- $cache->set($def, $config);
-
- $mock->expectOnce('replace', array($def, $config));
- $cache->replace($def, $config);
-
- $mock->expectOnce('get', array($config));
- $cache->get($config);
-
- $mock->expectOnce('flush', array($config));
- $cache->flush($config);
-
- $mock->expectOnce('cleanup', array($config));
- $cache->cleanup($config);
-
- }
-
-}
-
-// vim: et sw=4 sts=4
|