Fix spelling
[htmlpurifier/darkodev.git] / tests / test_files.php
blobd2b86cdb44340cd14b44b44101557d5924da33e9
1 <?php
3 if (!defined('HTMLPurifierTest')) exit;
5 // These arrays are defined by this file and can be relied upon.
6 $test_files = array();
7 $test_dirs = array();
8 $test_dirs_exclude = array();
9 $vtest_dirs = array();
10 $htmlt_dirs = array();
11 $phpt_dirs = array();
13 $break = true;
14 switch ($AC['type']) {
15 case '':
16 $break = false;
17 case 'htmlpurifier':
18 $test_dirs[] = 'HTMLPurifier';
19 $test_files[] = 'HTMLPurifierTest.php';
20 $test_dirs_exclude['HTMLPurifier/Filter/ExtractStyleBlocksTest.php'] = true;
21 if ($csstidy_location) {
22 $test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
24 if ($break) break;
25 case 'configdoc':
26 if (version_compare(PHP_VERSION, '5.2', '>=')) {
27 // $test_dirs[] = 'ConfigDoc'; // no test files currently!
29 if ($break) break;
30 case 'fstools':
31 $test_dirs[] = 'FSTools';
32 case 'htmlt':
33 $htmlt_dirs[] = 'HTMLPurifier/HTMLT';
34 if ($break) break;
35 case 'vtest':
36 $vtest_dirs[] = 'HTMLPurifier/ConfigSchema/Validator';
37 if ($break) break;
39 case 'phpt':
40 if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) {
41 $phpt_dirs[] = 'HTMLPurifier/PHPT';
45 // vim: et sw=4 sts=4