mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
9d390fca56
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@163 48356398-32a2-884e-a903-53898d9a118a
21 lines
494 B
PHP
21 lines
494 B
PHP
<?php
|
|
|
|
class HTMLPurifier_AttrTransformHarness extends UnitTestCase
|
|
{
|
|
|
|
var $transform;
|
|
|
|
function assertTransform($inputs, $expect) {
|
|
foreach ($inputs as $i => $input) {
|
|
$result = $this->transform->transform($input);
|
|
if ($expect[$i] === true) {
|
|
$this->assertEqual($input, $result, "Test $i: %s");
|
|
} else {
|
|
$this->assertEqual($expect[$i], $result, "Test $i: %s");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
?>
|