diff --git a/tests/HTMLPurifier/Test.php b/tests/HTMLPurifier/Test.php new file mode 100644 index 00000000..a4860405 --- /dev/null +++ b/tests/HTMLPurifier/Test.php @@ -0,0 +1,23 @@ +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"); + } +} + +?> \ No newline at end of file diff --git a/tests/index.php b/tests/index.php index f4c36d0e..beaf1831 100644 --- a/tests/index.php +++ b/tests/index.php @@ -88,6 +88,7 @@ $test_files[] = 'URISchemeRegistryTest.php'; $test_files[] = 'URISchemeTest.php'; $test_files[] = 'EncoderTest.php'; $test_files[] = 'EntityParserTest.php'; +$test_files[] = 'Test.php'; if (version_compare(PHP_VERSION, '5', '>=')) { $test_files[] = 'TokenFactoryTest.php';