3 require_once 'PHPUnit/Framework/TestCase.php';
6 * Simple test to check that htmlpurifier is installed
9 * @author Olivier Berger <olivier.berger@it-sudparis.eu>
10 * @copyright 2009 Olivier Berger & Institut TELECOM
11 * @license GPL License
13 class HtmlPurifier_Tests extends PHPUnit_Framework_TestCase
16 * Test that include of lib doesn't fail, otherwise give some hint on missing package
18 public function testHtmlPurifier()
21 // cannot test this as fails hard
22 //require_once('HTMLPurifier.auto.php');
23 // so include instead :
24 include 'HTMLPurifier.auto.php';
27 catch (PHPUnit_Framework_Error $expected) {
28 $this->fail('You probably need to install htmlpurifier : '.$expected->getMessage());