3 class HTMLPurifier_DefinitionCacheHarness
extends HTMLPurifier_Harness
7 * Generate a configuration mock object that returns $values
9 * @param $values Values to return when getBatch is invoked
11 protected function generateConfigMock($serial = 'defaultserial')
13 generate_mock_once('HTMLPurifier_Config');
14 $config = new HTMLPurifier_ConfigMock();
15 $config->returns('getBatchSerial', $serial, array('Test'));
16 $config->version
= '1.0.0';
21 * Returns an anonymous def that has been setup and named Test
23 protected function generateDefinition($member_vars = array())
25 $def = new HTMLPurifier_DefinitionTestable();
28 foreach ($member_vars as $key => $val) {