From: Ævar Arnfjörð Bjarmason Date: Fri, 20 Jan 2006 22:50:47 +0000 (+0000) Subject: * set_include_path() in case of a custom PHPTest install X-Git-Tag: 1.6.0~470 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=368a5106fac549fd926f8b0bba253c03236516f5;p=lhc%2Fweb%2Fwiklou.git * set_include_path() in case of a custom PHPTest install * Run ctype tests --- diff --git a/tests/RunTests.php b/tests/RunTests.php index 020dba407e..4e6e64160d 100644 --- a/tests/RunTests.php +++ b/tests/RunTests.php @@ -8,6 +8,8 @@ if( php_sapi_name() != 'cli' ) { error_reporting( E_ALL ); define( "MEDIAWIKI", true ); +set_include_path( get_include_path() . PATH_SEPARATOR . 'PHPUnit' ); +set_include_path( get_include_path() . PATH_SEPARATOR . '..' ); require_once( 'PHPUnit.php' ); $testOptions = array( @@ -33,6 +35,7 @@ $tests = array( 'SearchMySQL4Test', 'ArticleTest', 'SanitizerTest', + 'CtypeTest' ); foreach( $tests as $test ) { require_once( $test . '.php' ); @@ -88,4 +91,4 @@ function &buildTestDatabase( $serverType, $tables ) { } } -?> \ No newline at end of file +?>