Fix broken --only-phpt tests
[htmlpurifier.git] / tests / test_files.php
blobb91f9dd541377645cd0717d191bc8624fdb4928b
1 <?php
3 if (!defined('HTMLPurifierTest')) exit;
5 // define callable test files (sorted alphabetically)
7 if (!$AC['only-phpt']) {
9 // HTML Purifier main library
10 $test_dirs[] = 'HTMLPurifier';
11 $test_files[] = 'HTMLPurifierTest.php';
13 $test_dirs_exclude['HTMLPurifier/Filter/ExtractStyleBlocksTest.php'] = true;
14 if ($csstidy_location) {
15 $test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
18 // ConfigSchema Validator tests
19 $vtest_dirs[] = 'HTMLPurifier/ConfigSchema/Validator';
21 // ConfigDoc auxiliary library
22 if (version_compare(PHP_VERSION, '5.2', '>=')) {
23 $test_dirs[] = 'ConfigDoc';
26 // FSTools auxiliary library
27 $test_dirs[] = 'FSTools';
31 // PHPT tests
32 if (!$AC['disable-phpt']) {
33 $phpt_dirs[] = 'HTMLPurifier/PHPT';