2007-01-19 23:26:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!defined('HTMLPurifierTest')) exit;
|
|
|
|
|
2008-07-05 06:25:40 +00:00
|
|
|
// These arrays are defined by this file and can be relied upon.
|
|
|
|
$test_files = array();
|
|
|
|
$test_dirs = array();
|
|
|
|
$test_dirs_exclude = array();
|
|
|
|
$vtest_dirs = array();
|
|
|
|
$htmlt_dirs = array();
|
|
|
|
$phpt_dirs = array();
|
2007-05-28 02:29:48 +00:00
|
|
|
|
2008-07-05 06:25:40 +00:00
|
|
|
$break = true;
|
|
|
|
switch ($AC['type']) {
|
|
|
|
case '':
|
|
|
|
$break = false;
|
|
|
|
case 'htmlpurifier':
|
|
|
|
$test_dirs[] = 'HTMLPurifier';
|
|
|
|
$test_files[] = 'HTMLPurifierTest.php';
|
|
|
|
$test_dirs_exclude['HTMLPurifier/Filter/ExtractStyleBlocksTest.php'] = true;
|
|
|
|
if ($csstidy_location) {
|
|
|
|
$test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
|
|
|
|
}
|
|
|
|
if ($break) break;
|
|
|
|
case 'configdoc':
|
|
|
|
if (version_compare(PHP_VERSION, '5.2', '>=')) {
|
|
|
|
// $test_dirs[] = 'ConfigDoc'; // no test files currently!
|
|
|
|
}
|
|
|
|
if ($break) break;
|
|
|
|
case 'fstools':
|
|
|
|
$test_dirs[] = 'FSTools';
|
|
|
|
case 'htmlt':
|
|
|
|
$htmlt_dirs[] = 'HTMLPurifier/HTMLT';
|
|
|
|
if ($break) break;
|
|
|
|
case 'vtest':
|
|
|
|
$vtest_dirs[] = 'HTMLPurifier/ConfigSchema/Validator';
|
|
|
|
if ($break) break;
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-07-05 06:25:40 +00:00
|
|
|
case 'phpt':
|
|
|
|
if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) {
|
|
|
|
$phpt_dirs[] = 'HTMLPurifier/PHPT';
|
|
|
|
}
|
2008-02-16 05:40:59 +00:00
|
|
|
}
|
2008-12-06 09:24:59 +00:00
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|