blob: d2b86cdb44340cd14b44b44101557d5924da33e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
if (!defined('HTMLPurifierTest')) exit;
// 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();
$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;
case 'phpt':
if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) {
$phpt_dirs[] = 'HTMLPurifier/PHPT';
}
}
// vim: et sw=4 sts=4
|