From a5ceb1e22a605916d664411721be83d1dc1ca24a Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 27 Jun 2008 01:33:20 -0400 Subject: [PATCH] Update printTokens() debug function to work with new Generator API. Signed-off-by: Edward Z. Yang --- tests/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.php b/tests/common.php index 3b4838f1..60ff87cd 100644 --- a/tests/common.php +++ b/tests/common.php @@ -171,7 +171,7 @@ function htmlpurifier_add_test($test, $test_file, $only_phpt = false) { */ function printTokens($tokens, $index = null) { $string = '
';
-    $generator = new HTMLPurifier_Generator();
+    $generator = new HTMLPurifier_Generator(HTMLPurifier_Config::createDefault(), new HTMLPurifier_Context);
     foreach ($tokens as $i => $token) {
         if ($index === $i) $string .= '[';
         $string .= "$i";
-- 
2.11.4.GIT