HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/test-settings.sample.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // ATTENTION! DO NOT EDIT THIS FILE!
00004 // This file is necessary to run the unit tests and profiling scripts.
00005 // Please copy it to 'test-settings.php' and make the necessary edits.
00006 
00007 // Note: The only external library you *need* is SimpleTest; everything else
00008 //       is optional.
00009 
00010 // We've got a lot of tests, so we recommend turning the limit off.
00011 set_time_limit(0);
00012 
00013 // Turning off output buffering will prevent mysterious errors from core dumps.
00014 $data = @ob_get_clean();
00015 if ($data !== false && $data !== '') {
00016     echo "Output buffer contains data [".urlencode($data)."]\n";
00017     exit;
00018 }
00019 
00020 // -----------------------------------------------------------------------------
00021 // REQUIRED SETTINGS
00022 
00023 // Note on running SimpleTest:
00024 //      Because HTML Purifier is PHP5-only and E_STRICT compliant, SimpleTest
00025 //      1.0.1 will not work; you need to run SimpleTest off its trunk using:
00026 //
00027 //        $ svn co https://simpletest.svn.sourceforge.net/svnroot/simpletest/simpletest/trunk simpletest
00028 //
00029 //      If SimpleTest is borked with HTML Purifier, please contact me or
00030 //      the SimpleTest devs; I am a developer for SimpleTest so I should be
00031 //      able to quickly assess a fix. SimpleTest's problem is my problem!
00032 
00033 // Where is SimpleTest located? Remember to include a trailing slash!
00034 $simpletest_location = '/path/to/simpletest/';
00035 
00036 // -----------------------------------------------------------------------------
00037 // OPTIONAL SETTINGS
00038 
00039 // Note on running PHPT:
00040 //      Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
00041 //      work fine on Linux w/o multitest.
00042 //
00043 //      To do multitest or Windows testing, you'll need some more
00044 //      patches at https://github.com/ezyang/PHPT_Core
00045 //
00046 //      I haven't tested the Windows setup in a while so I don't know if
00047 //      it still works.
00048 
00049 // Should PHPT tests be enabled?
00050 $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
00051 
00052 // If PHPT isn't in your Path via PEAR, set that here:
00053 // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
00054 
00055 // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
00056 $csstidy_location    = false;
00057 
00058 // For tests/multitest.php, which versions to test?
00059 $versions_to_test    = array();
00060 
00061 // Stable PHP binary to use when invoking maintenance scripts.
00062 $php = 'php';
00063 
00064 // For tests/multitest.php, what is the multi-version executable? It must
00065 // accept an extra parameter (version number) before all other arguments
00066 $phpv = false;
00067 
00068 // Should PEAR tests be run? If you've got a valid PEAR installation, set this
00069 // to true (or, if it's not in the include path, to its install directory).
00070 $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
00071 
00072 // If PEAR is enabled, what PEAR tests should be run? (Note: you will
00073 // need to ensure these libraries are installed)
00074 $GLOBALS['HTMLPurifierTest']['Net_IDNA2'] = true;
00075 
00076 // vim: et sw=4 sts=4