cms/drupal/profiles/drustack/libraries/htmlpurifier/test-settings.sample.php
changeset 541 e756a8c72c3d
equal deleted inserted replaced
540:07239de796bb 541:e756a8c72c3d
       
     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 //      Because HTML Purifier is PHP5-only and E_STRICT compliant, SimpleTest
       
    25 //      1.0.1 will not work; you need to run SimpleTest off its trunk using:
       
    26 //
       
    27 //        $ svn co https://simpletest.svn.sourceforge.net/svnroot/simpletest/simpletest/trunk simpletest
       
    28 //
       
    29 //      If SimpleTest is borked with HTML Purifier, please contact me or
       
    30 //      the SimpleTest devs; I am a developer for SimpleTest so I should be
       
    31 //      able to quickly assess a fix. SimpleTest's problem is my problem!
       
    32 
       
    33 // Where is SimpleTest located? Remember to include a trailing slash!
       
    34 $simpletest_location = '/path/to/simpletest/';
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // OPTIONAL SETTINGS
       
    38 
       
    39 // Note on running PHPT:
       
    40 //      Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
       
    41 //      work fine on Linux w/o multitest.
       
    42 //
       
    43 //      To do multitest or Windows testing, you'll need some more
       
    44 //      patches at https://github.com/ezyang/PHPT_Core
       
    45 //
       
    46 //      I haven't tested the Windows setup in a while so I don't know if
       
    47 //      it still works.
       
    48 
       
    49 // Should PHPT tests be enabled?
       
    50 $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
       
    51 
       
    52 // If PHPT isn't in your Path via PEAR, set that here:
       
    53 // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
       
    54 
       
    55 // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
       
    56 $csstidy_location    = false;
       
    57 
       
    58 // For tests/multitest.php, which versions to test?
       
    59 $versions_to_test    = array();
       
    60 
       
    61 // Stable PHP binary to use when invoking maintenance scripts.
       
    62 $php = 'php';
       
    63 
       
    64 // For tests/multitest.php, what is the multi-version executable? It must
       
    65 // accept an extra parameter (version number) before all other arguments
       
    66 $phpv = false;
       
    67 
       
    68 // Should PEAR tests be run? If you've got a valid PEAR installation, set this
       
    69 // to true (or, if it's not in the include path, to its install directory).
       
    70 $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
       
    71 
       
    72 // If PEAR is enabled, what PEAR tests should be run? (Note: you will
       
    73 // need to ensure these libraries are installed)
       
    74 $GLOBALS['HTMLPurifierTest']['Net_IDNA2'] = true;
       
    75 
       
    76 // vim: et sw=4 sts=4