Preserve the ID.';
$expect[1] = $inputs[1];
$inputs[2] = '
Kill the ID.
';
$expect[2] = 'Kill the ID.
';
// test id accumulator
$inputs[3] = 'Valid
Invalid
';
$expect[3] = 'Valid
Invalid
';
$inputs[4] = 'Bad dir.';
$expect[4] = 'Bad dir.';
// test attribute 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');
// test classes
$inputs[8] = 'Valid
';
$expect[8] = $inputs[8];
$inputs[9] = 'Keep valid.
';
$expect[9] = 'Keep valid.
';
// test title
$inputs[10] = 'PHP';
$expect[10] = $inputs[10];
// test lang
$inputs[11] = 'La soupe.';
$expect[11] = 'La soupe.';
// test align (won't work till CSS validation is implemented)
// $inputs[12] = 'Centered Headline
';
// $expect[12] = 'Centered Headline
';
// test table
$inputs[13] = <<
Supercalifragilistic |
Cell one |
HTML;
$expect[13] = $inputs[13];
$this->assertStrategyWorks($strategy, $inputs, $expect, $config);
}
}
?>