* set_include_path() in case of a custom PHPTest install
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 20 Jan 2006 22:50:47 +0000 (22:50 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 20 Jan 2006 22:50:47 +0000 (22:50 +0000)
* Run ctype tests

tests/RunTests.php

index 020dba4..4e6e641 100644 (file)
@@ -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
+?>