diff --git a/tests/CommentsTest.php b/tests/CommentsTest.php index 07c8d84..cc8ee30 100644 --- a/tests/CommentsTest.php +++ b/tests/CommentsTest.php @@ -974,6 +974,11 @@ class CommentsTest extends FunctionalTest public function testPurifyHtml() { + if (!class_exists('HTMLPurifier_Config')) { + $this->markTestSkipped('HTMLPurifier class not found'); + return; + } + $comment = $this->objFromFixture('Comment', 'firstComA'); $dirtyHTML = '

my comment

';