ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
test-settings.sample.php
Go to the documentation of this file.
1
<?
php
2
3
// ATTENTION! DO NOT EDIT THIS FILE!
4
// This file is necessary to run the unit tests and profiling scripts.
5
// Please copy it to 'test-settings.php' and make the necessary edits.
6
7
// Note: The only external library you *need* is SimpleTest; everything else
8
// is optional.
9
10
// We've got a lot of tests, so we recommend turning the limit off.
11
set_time_limit(0);
12
13
// Turning off output buffering will prevent mysterious errors from core dumps.
14
$data
= @ob_get_clean();
15
if
(
$data
!==
false
&&
$data
!==
''
) {
16
echo
"Output buffer contains data ["
.urlencode(
$data
).
"]\n"
;
17
exit
;
18
}
19
20
// -----------------------------------------------------------------------------
21
// REQUIRED SETTINGS
22
23
// Note on running SimpleTest:
24
// You want the Git copy of SimpleTest, found here:
25
// https://github.com/simpletest/simpletest/
26
//
27
// If SimpleTest is borked with HTML Purifier, please contact me or
28
// the SimpleTest devs; I am a developer for SimpleTest so I should be
29
// able to quickly assess a fix. SimpleTest's problem is my problem!
30
31
// Where is SimpleTest located? Remember to include a trailing slash!
32
$simpletest_location
=
'/path/to/simpletest/'
;
33
34
// -----------------------------------------------------------------------------
35
// OPTIONAL SETTINGS
36
37
// Note on running PHPT:
38
// Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
39
// work fine on Linux w/o multitest.
40
//
41
// To do multitest or Windows testing, you'll need some more
42
// patches at https://github.com/ezyang/PHPT_Core
43
//
44
// I haven't tested the Windows setup in a while so I don't know if
45
// it still works.
46
47
// Should PHPT tests be enabled?
48
$GLOBALS
[
'HTMLPurifierTest'
][
'PHPT'
] =
false
;
49
50
// If PHPT isn't in your Path via PEAR, set that here:
51
// set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
52
53
// Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
54
$csstidy_location
=
false
;
55
56
// For tests/multitest.php, which versions to test?
57
$versions_to_test
= array();
58
59
// Stable PHP binary to use when invoking maintenance scripts.
60
$php
=
'php'
;
61
62
// For tests/multitest.php, what is the multi-version executable? It must
63
// accept an extra parameter (version number) before all other arguments
64
$phpv
=
false
;
65
66
// Should PEAR tests be run? If you've got a valid PEAR installation, set this
67
// to true (or, if it's not in the include path, to its install directory).
68
$GLOBALS
[
'HTMLPurifierTest'
][
'PEAR'
] =
false
;
69
70
// If PEAR is enabled, what PEAR tests should be run? (Note: you will
71
// need to ensure these libraries are installed)
72
$GLOBALS
[
'HTMLPurifierTest'
][
'Net_IDNA2'
] =
true
;
73
74
// vim: et sw=4 sts=4
php
An exception for terminatinating execution or to throw for unit testing.
exit
exit
Definition:
old-extract-schema.php:9
$php
$php
Definition:
test-settings.sample.php:60
$csstidy_location
$csstidy_location
Definition:
test-settings.sample.php:54
$versions_to_test
$versions_to_test
Definition:
test-settings.sample.php:57
$simpletest_location
if($data !==false && $data !=='') $simpletest_location
Definition:
test-settings.sample.php:32
$data
$data
Definition:
test-settings.sample.php:14
$phpv
$phpv
Definition:
test-settings.sample.php:64
$GLOBALS
$GLOBALS['HTMLPurifierTest']['PHPT']
Definition:
test-settings.sample.php:48
libs
composer
vendor
ezyang
htmlpurifier
test-settings.sample.php
Generated on Fri Oct 3 2025 19:00:41 for ILIAS by
1.9.4 (using
Doxyfile
)