mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
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");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|