2007-01-19 23:26:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!defined('HTMLPurifierTest')) exit;
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
// define callable test files (sorted alphabetically)
|
2007-05-28 02:29:48 +00:00
|
|
|
|
2008-02-16 05:40:59 +00:00
|
|
|
if (!$AC['only-phpt']) {
|
2008-03-02 02:05:47 +00:00
|
|
|
|
|
|
|
// HTML Purifier main library
|
|
|
|
$test_dirs[] = 'HTMLPurifier';
|
|
|
|
$test_files[] = 'HTMLPurifierTest.php';
|
|
|
|
|
|
|
|
$test_dirs_exclude['HTMLPurifier/Filter/ExtractStyleBlocksTest.php'] = true;
|
|
|
|
if ($csstidy_location) {
|
|
|
|
$test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
|
|
|
|
}
|
|
|
|
|
|
|
|
// ConfigDoc auxiliary library
|
|
|
|
if (version_compare(PHP_VERSION, '5.2', '>=')) {
|
|
|
|
$test_dirs[] = 'ConfigDoc';
|
|
|
|
}
|
|
|
|
|
|
|
|
// FSTools auxiliary library
|
|
|
|
$test_dirs[] = 'FSTools';
|
|
|
|
|
2008-02-25 21:21:12 +00:00
|
|
|
}
|
2007-05-28 02:29:48 +00:00
|
|
|
|
2008-02-16 00:40:30 +00:00
|
|
|
// PHPT tests
|
2008-02-16 05:40:59 +00:00
|
|
|
if (!$AC['disable-phpt']) {
|
|
|
|
$phpt_dirs = array();
|
|
|
|
$phpt_dirs[] = 'HTMLPurifier/PHPT';
|
|
|
|
}
|