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";