Preserve the ID.'; $expect[1] = $inputs[1]; $inputs[2] = '
Kill the ID.
'; $expect[2] = '
Kill the ID.
'; // test accumulator $inputs[3] = '
Valid
Invalid
'; $expect[3] = '
Valid
Invalid
'; $inputs[4] = 'Bad dir.'; $expect[4] = 'Bad dir.'; // test case sensitivity $inputs[5] = '
Convert ID to lowercase.
'; $expect[5] = '
Convert ID to lowercase.
'; // test simple attribute substitution $inputs[6] = '
Trim whitespace.
'; $expect[6] = '
Trim whitespace.
'; // test configuration id blacklist $inputs[7] = '
Invalid
'; $expect[7] = '
Invalid
'; $config[7] = HTMLPurifier_Config::createDefault(); $config[7]->attr_id_blacklist = array('invalid'); $this->assertStrategyWorks($strategy, $inputs, $expect, $config); } } ?>