From 06e8b022a43538929ef3421f2ff578963c3027d3 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 1 Sep 2006 17:50:55 +0000 Subject: [PATCH] Add integration test. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/branches/1.0@372 48356398-32a2-884e-a903-53898d9a118a --- tests/HTMLPurifier/Test.php | 23 +++++++++++++++++++++++ tests/index.php | 1 + 2 files changed, 24 insertions(+) create mode 100644 tests/HTMLPurifier/Test.php 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';