* Test the CDB reader/writer
*/
-class CdbTest extends PHPUnit_Framework_TestCase {
+class CdbTest extends MediaWikiTestCase {
public function setUp() {
if ( !CdbReader::haveExtension() ) {
* External Store tests
*/
-class ExternalStoreTest extends PHPUnit_Framework_TestCase {
+class ExternalStoreTest extends MediaWikiTestCase {
private $saved_wgExternalStores;
function setUp() {
/**
* Parser-related tests that don't suit for parserTests.txt
*/
-class ExtraParserTest extends PHPUnit_Framework_TestCase {
+class ExtraParserTest extends MediaWikiTestCase {
function setUp() {
global $wgMemc;
<?php
-class GlobalTest extends PHPUnit_Framework_TestCase {
+class GlobalTest extends MediaWikiTestCase {
function setUp() {
global $wgReadOnlyFile, $wgContLang, $wgLang;
$this->originals['wgReadOnlyFile'] = $wgReadOnlyFile;
/**
* @group Broken
*/
-class HttpTest extends PHPUnit_Framework_TestCase {
+class HttpTest extends MediaWikiTestCase {
static $content;
static $headers;
static $has_curl;
* Tests for IP validity functions. Ported from /t/inc/IP.t by avar.
*/
-class IPTest extends PHPUnit_Framework_TestCase {
+class IPTest extends MediaWikiTestCase {
// not sure it should be tested with boolean false. hashar 20100924
public function testisIPAddress() {
$this->assertFalse( IP::isIPAddress( false ), 'Boolean false is not an IP' );
<?php
-class ImageFunctionsTest extends PHPUnit_Framework_TestCase {
+class ImageFunctionsTest extends MediaWikiTestCase {
function testFitBoxWidth() {
$vals = array(
array(
<?php
-class LanguageConverterTest extends PHPUnit_Framework_TestCase {
+class LanguageConverterTest extends MediaWikiTestCase {
protected $lang = null;
protected $lc = null;
<?php
-class LicensesTest extends PHPUnit_Framework_TestCase {
+class LicensesTest extends MediaWikiTestCase {
function testLicenses() {
$str = "
* These tests should work regardless of $wgCapitalLinks
*/
-class LocalFileTest extends PHPUnit_Framework_TestCase {
+class LocalFileTest extends MediaWikiTestCase {
function setUp() {
global $wgContLang, $wgCapitalLinks;
<?php
-class MessageTest extends PHPUnit_Framework_TestCase {
+class MessageTest extends MediaWikiTestCase {
function setUp() {
global $wgLanguageCode, $wgLang, $wgContLang, $wgMessageCache;
<?php
-class ParserOptionsTest extends PHPUnit_Framework_TestCase {
+class ParserOptionsTest extends MediaWikiTestCase {
private $popts;
private $pcache;
<?php
-class ResourceLoaderFileModuleTest extends PHPUnit_Framework_TestCase {
+class ResourceLoaderFileModuleTest extends MediaWikiTestCase {
/* Provider Methods */
public function provide() {
<?php
-class RevisionTest extends PHPUnit_Framework_TestCase {
+class RevisionTest extends MediaWikiTestCase {
var $saveGlobals = array();
function setUp() {
<?php
-class TestSample extends PHPUnit_Framework_TestCase {
+class TestSample extends MediaWikiTestCase {
/**
* Anything that needs to happen before your tests should go here.
<?php
-class SanitizerTest extends PHPUnit_Framework_TestCase {
+class SanitizerTest extends MediaWikiTestCase {
function setUp() {
AutoLoader::loadClass( 'Sanitizer' );
<?php
-class SeleniumConfigurationTest extends PHPUnit_Framework_TestCase {
+class SeleniumConfigurationTest extends MediaWikiTestCase {
/*
* The file where the test temporarity stores the selenium config.
);
}
-class SiteConfigurationTest extends PHPUnit_Framework_TestCase {
+class SiteConfigurationTest extends MediaWikiTestCase {
var $mConf;
function setUp() {
<?php
-class TimeAdjustTest extends PHPUnit_Framework_TestCase {
+class TimeAdjustTest extends MediaWikiTestCase {
static $offset;
public function setUp() {
* @group Database
* @group Destructive
*/
-class TitlePermissionTest extends PHPUnit_Framework_TestCase {
+class TitlePermissionTest extends MediaWikiTestCase {
static $title;
static $user;
static $anonUser;
<?php
-class TitleTest extends PHPUnit_Framework_TestCase {
+class TitleTest extends MediaWikiTestCase {
function testLegalChars() {
$titlechars = Title::legalChars();
/**
* @group Upload
*/
-class UploadTest extends PHPUnit_Framework_TestCase {
+class UploadTest extends MediaWikiTestCase {
protected $upload;
<?php
-class UserIsValidEmailAddrTest extends PHPUnit_Framework_TestCase {
+class UserIsValidEmailAddrTest extends MediaWikiTestCase {
private function checkEmail( $addr, $expected = true, $msg = '') {
$this->assertEquals(
<?php
-class XmlTest extends PHPUnit_Framework_TestCase {
+class XmlTest extends MediaWikiTestCase {
public function testExpandAttributes() {
$this->assertNull( Xml::expandAttributes(null),
}
// TODO
-class XmlSelectTest extends PHPUnit_Framework_TestCase {
+class XmlSelectTest extends MediaWikiTestCase {
}
<?php
-abstract class ApiTestSetup extends PHPUnit_Framework_TestCase {
+abstract class ApiTestSetup extends MediaWikiTestCase {
protected static $user;
protected static $sysopUser;
protected static $apiUrl;
}
-abstract class ApiTestCase extends PHPUnit_Framework_TestCase {
+abstract class ApiTestCase extends MediaWikiTestCase {
public static $users;
function setUp() {
/**
* @group sqlite
*/
-class DatabaseSqliteTest extends PHPUnit_Framework_TestCase {
+class DatabaseSqliteTest extends MediaWikiTestCase {
var $db;
public function setUp() {
/**
* @group Database
*/
-class DatabaseTest extends PHPUnit_Framework_TestCase {
+class DatabaseTest extends MediaWikiTestCase {
var $db;
function setUp() {
}
}
-class ParserUnitTest extends PHPUnit_Framework_TestCase {
+class ParserUnitTest extends MediaWikiTestCase {
private $test = "";
- private $suite;
public function __construct( $suite, $test = null ) {
- $this->suite = $suite;
+ parent::__construct();
$this->test = $test;
+ $this->suite = $suite;
}
function count() { return 1; }
/**
* @group Search
*/
-class SearchUpdateTest extends PHPUnit_Framework_TestCase {
+class SearchUpdateTest extends MediaWikiTestCase {
static $searchType;
function update( $text, $title = 'Test', $id = 1 ) {
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./bootstrap.php"
- colors="false"
+ colors="true"
backupGlobals="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
- stopOnFailure="false"
- strict="true">
+ stopOnFailure="true"
+ strict="true"
+ verbose="true">
<testsuites>
<testsuite name="includes">
<directory>./includes</directory>
* Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".'
* when no extensions with tests are used.
*/
-class DummyExtensionsTest extends PHPUnit_Framework_TestCase {
+class DummyExtensionsTest extends MediaWikiTestCase {
public function testNothing() {
}