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';
|
|
|
|
}
|
|
|
|
|
2008-03-23 01:06:35 +00:00
|
|
|
// ConfigSchema Validator tests
|
|
|
|
$vtest_dirs[] = 'HTMLPurifier/ConfigSchema/Validator';
|
|
|
|
|
2008-03-02 02:05:47 +00:00
|
|
|
// ConfigDoc auxiliary library
|
|
|
|
if (version_compare(PHP_VERSION, '5.2', '>=')) {
|
2008-04-22 02:19:40 +00:00
|
|
|
// $test_dirs[] = 'ConfigDoc'; // no test files currently!
|
2008-03-02 02:05:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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-04-08 19:25:56 +00:00
|
|
|
if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) {
|
2008-02-16 05:40:59 +00:00
|
|
|
$phpt_dirs[] = 'HTMLPurifier/PHPT';
|
|
|
|
}
|