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]->set('Attr', 'IDBlacklist', 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] =
'
Fiddly name |
Super-duper-price |
Carrot Humungous |
$500.23 |
Taken off the market |
';
$expect[13] = $inputs[13];
// test URI
$inputs[14] = 'Google';
$expect[14] = $inputs[14];
// test invalid URI
$inputs[15] = 'Google';
$expect[15] = 'Google';
// test required attributes for img
$inputs[16] = '';
$expect[16] = '';
$inputs[17] = '';
$expect[17] = '';
$inputs[18] = '';
$expect[18] = '';
// test required attributes for bdo
$inputs[19] = 'Go left.';
$expect[19] = 'Go left.';
$inputs[20] = 'Invalid value!';
$expect[20] = 'Invalid value!';
// comparison check for test 20
$inputs[21] = 'Invalid value!';
$expect[21] = 'Invalid value!';
// test col.span is non-zero
$inputs[22] = '';
$expect[22] = '';
$this->assertStrategyWorks($strategy, $inputs, $expect, $config);
}
}
?>