0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-09 23:28:42 +00:00
htmlpurifier/tests/HTMLPurifier/AttrTransformHarness.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");
}
}
}
}
?>