Move several unit tests to directly subclass PHPUnit_Framework_TestCase

Change-Id: I306166c116b9787a5568e5289799440dd1030345
This commit is contained in:
Chad Horohoe 2015-06-09 10:02:48 -07:00
parent 07a8fc1b96
commit 48f83536bd
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<?php
class MimeMagicTest extends MediaWikiTestCase {
class MimeMagicTest extends PHPUnit_Framework_TestCase {
/** @var MimeMagic */
private $mimeMagic;

View file

@ -5,7 +5,7 @@
* @todo all test methods in this class should be refactored and...
* use a single test method and a single data provider...
*/
class SanitizerValidateEmailTest extends MediaWikiTestCase {
class SanitizerValidateEmailTest extends PHPUnit_Framework_TestCase {
private function checkEmail( $addr, $expected = true, $msg = '' ) {
if ( $msg == '' ) {

View file

@ -4,7 +4,7 @@
* @author Adam Shorland
* @covers TitleArrayFromResult
*/
class TitleArrayFromResultTest extends MediaWikiTestCase {
class TitleArrayFromResultTest extends PHPUnit_Framework_TestCase {
private function getMockResultWrapper( $row = null, $numRows = 1 ) {
$resultWrapper = $this->getMockBuilder( 'ResultWrapper' )

View file

@ -3,7 +3,7 @@
/**
* @group Xml
*/
class XmlJs extends MediaWikiTestCase {
class XmlJs extends PHPUnit_Framework_TestCase {
/**
* @covers XmlJsCode::__construct