summaryrefslogtreecommitdiff
path: root/t/inc
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-02-22 13:37:51 +0100
committerPierre Schmitz <pierre@archlinux.de>2009-02-22 13:37:51 +0100
commitb9b85843572bf283f48285001e276ba7e61b63f6 (patch)
tree4c6f4571552ada9ccfb4030481dcf77308f8b254 /t/inc
parentd9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff)
updated to MediaWiki 1.14.0
Diffstat (limited to 't/inc')
-rw-r--r--t/inc/Database.t10
-rw-r--r--t/inc/Global.t10
2 files changed, 9 insertions, 11 deletions
diff --git a/t/inc/Database.t b/t/inc/Database.t
index 5092be9d..4367fcd1 100644
--- a/t/inc/Database.t
+++ b/t/inc/Database.t
@@ -5,14 +5,12 @@ define( 'MEDIAWIKI', true );
require 't/Test.php';
require 'includes/Defines.php';
+require 'StartProfiler.php';
+require 'includes/AutoLoader.php';
require 'LocalSettings.php';
+require 'includes/Setup.php';
-plan( 13 );
-
-require_ok( 'includes/ProfilerStub.php' );
-require_ok( 'includes/GlobalFunctions.php' );
-require_ok( 'includes/Exception.php' );
-require_ok( 'includes/Database.php' );
+plan( 9 );
$db = new Database( $wgDBserver, $wgDBuser, $wgDBpassword );
diff --git a/t/inc/Global.t b/t/inc/Global.t
index adf8d135..7b2994e6 100644
--- a/t/inc/Global.t
+++ b/t/inc/Global.t
@@ -5,12 +5,12 @@ define( 'MEDIAWIKI', true );
require 't/Test.php';
require 'includes/Defines.php';
+require 'StartProfiler.php';
+require 'includes/AutoLoader.php';
require 'LocalSettings.php';
+require 'includes/Setup.php';
-plan( 48 );
-
-require_ok( 'includes/ProfilerStub.php' );
-require_ok( 'includes/GlobalFunctions.php' );
+plan( 46 );
$wgReadOnly = null;
$wgReadOnlyFile = tempnam(wfTempDir(), "mwtest_readonly");
@@ -48,7 +48,7 @@ is( wfQuotedPrintable( "\xc4\x88u legebla?", "UTF-8" ),
$start = wfTime();
is( gettype( $start ), 'float', 'Time (type)' );
$end = wfTime();
-cmp_ok( $end, '>', $start, 'Time' );
+cmp_ok( $end, '>', $start, 'Time (compare)' );
$arr = wfArrayToCGI(
array( 'baz' => 'AT&T', 'ignore' => '' ),