}
function testApi() {
- global $wgServerName, $wgServer, $wgDBprefix;
+ global $wgServerName, $wgServer, $wgDBprefix, $wgDBtype;
- if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_')) $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
+ if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_'))
+ $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
function testApiLoginNoName() {
- global $wgServerName, $wgServer, $wgDBprefix;
+ global $wgServerName, $wgServer, $wgDBprefix, $wgDBtype;
- if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_')) $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
+ if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_'))
+ $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
function testApiLoginBadPass() {
- global $wgServerName, $wgServer, $wgDBprefix;
+ global $wgServerName, $wgServer, $wgDBprefix, $wgDBtype;
- if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_')) $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
+ if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_'))
+ $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
function testApiLoginGoodPass() {
- global $wgServerName, $wgServer, $wgDBprefix;
+ global $wgServerName, $wgServer, $wgDBprefix, $wgDBtype;
- if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_')) $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
+ if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_'))
+ $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
}
function testApiGotCookie() {
- global $wgServerName, $wgServer, $wgScriptPath, $wgDBprefix;
+ global $wgServerName, $wgServer, $wgScriptPath, $wgDBprefix, $wgDBtype;
- if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_')) $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
+ if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_'))
+ $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
if(!isset($wgServerName) || !isset($wgServer)) {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
*/
function testApiListPages(CookieJar $cj) {
$this->markTestIncomplete("Not done with this yet");
- global $wgServerName, $wgServer, $wgDBprefix;
+ global $wgServerName, $wgServer, $wgDBprefix, $wgDBtype;
- if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_')) $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
+ if($wgDBprefix === "parsertest_" || ($wgDBtype == 'oracle' && $wgDBprefix === 'pt_'))
+ $this->markTestSkipped("This test can't (yet?) be run with the parser tests");
if($wgServerName == "localhost" || $wgServer == "http://localhost") {
$this->markTestIncomplete('This test needs $wgServerName and $wgServer to '.
'be set in LocalSettings.php');
<!-- See http://www.phpunit.de/manual/3.3/en/appendixes.configuration.html -->
<phpunit bootstrap="./bootstrap.php"
- colors="false"
+ colors="true"
+ backupGlobals="false"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
stopOnFailure="false">
- <!-- convertErrorsToExceptions="true" -->
- <!-- convertNoticesToExceptions="true" -->
- <!-- convertWarningsToExceptions="true" -->
<testsuite name="MediaWiki Test Suite">
- <directory>.</directory>
- <!-- <file>HttpTest.php</file> -->
- <!-- <file>SearchEngineTest.php</file> -->
- <!-- <file>SiteConfigurationTest.php</file> -->
- <!-- <file>RevisionTest.php</file> -->
- <!-- <file>XmlTest.php</file> -->
- <!-- <file>TimeAdjustTest.php</file> -->
- <!-- <file>ApiTest.php</file> -->
- <!-- <file>LanguageConverterTest.php</file> -->
- <!-- <file>TitleTest.php</file> -->
- <!-- <file>UploadFromChunksTest.php</file> -->
- <!-- <file>LocalFileTest.php</file> -->
- <!-- <file>XmlTest.php</file> -->
- <!-- <file>MediaWikiParserTest.php</file> -->
+ <!-- <directory>.</directory> -->
+ <file>ApiTest.php</file>
+ <file>HttpTest.php</file>
+ <file>LanguageConverterTest.php</file>
+ <file>LocalFileTest.php</file>
+ <file>MediaWikiParserTest.php</file>
+ <file>RevisionTest.php</file>
+ <file>SearchEngineTest.php</file>
+ <file>SiteConfigurationTest.php</file>
+ <file>TimeAdjustTest.php</file>
+ <file>TitleTest.php</file>
+ <file>UploadFromChunksTest.php</file>
+ <file>XmlTest.php</file>
</testsuite>
<groups>
<exclude>