mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
a5b4ed2126
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@382 48356398-32a2-884e-a903-53898d9a118a
24 lines
556 B
PHP
24 lines
556 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier.php';
|
|
|
|
// integration test
|
|
|
|
class HTMLPurifier_Test extends UnitTestCase
|
|
{
|
|
var $purifier;
|
|
|
|
function assertPurification($input, $expect = null) {
|
|
if ($expect === null) $expect = $input;
|
|
$result = $this->purifier->purify($input);
|
|
$this->assertIdentical($expect, $result);
|
|
}
|
|
|
|
function test() {
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
$this->purifier = new HTMLPurifier($config);
|
|
$this->assertPurification("Null byte\0", "Null byte");
|
|
}
|
|
}
|
|
|
|
?>
|