mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +00:00
1b80051115
* Define HTMLPurifier_AttrTransform_SafeParam::$wmode This fixes a PHP 8.2 deprecation. * Define HTMLPurifier_DefinitionCache_DecoratorHarness::$cache This fixes a PHP 8.2 deprecation. * Define HTMLPurifier_DefinitionCache_DecoratorHarness::$mock This fixes a PHP 8.2 deprecation. * Define HTMLPurifier_DefinitionCache_DecoratorHarness::$def This fixes a PHP 8.2 deprecation. * Define HTMLPurifier_EntityParserTest::$_entity_lookup This fixes a PHP 8.2 deprecation.
32 lines
658 B
PHP
32 lines
658 B
PHP
<?php
|
|
|
|
generate_mock_once('HTMLPurifier_DefinitionCache');
|
|
|
|
class HTMLPurifier_DefinitionCache_DecoratorHarness extends HTMLPurifier_DefinitionCacheHarness
|
|
{
|
|
|
|
public $cache;
|
|
|
|
public $mock;
|
|
|
|
public $def;
|
|
|
|
public function setup()
|
|
{
|
|
$this->mock = new HTMLPurifier_DefinitionCacheMock();
|
|
$this->mock->type = 'Test';
|
|
$this->cache = $this->cache->decorate($this->mock);
|
|
$this->def = $this->generateDefinition();
|
|
$this->config = $this->generateConfigMock();
|
|
}
|
|
|
|
public function teardown()
|
|
{
|
|
unset($this->mock);
|
|
unset($this->cache);
|
|
}
|
|
|
|
}
|
|
|
|
// vim: et sw=4 sts=4
|