The test class should have Test at end
and same name as the testing class
Change-Id: Id0c90994d257fb325834e123b462f7f0849ac556
* @group medium
* ^--- tell phpunit that these test cases may take longer than 2 seconds.
*/
* @group medium
* ^--- tell phpunit that these test cases may take longer than 2 seconds.
*/
-class TestPageProps extends MediaWikiLangTestCase {
+class PagePropsTest extends MediaWikiLangTestCase {
-class TestSample extends MediaWikiLangTestCase {
+class SampleTest extends MediaWikiLangTestCase {
/**
* Anything that needs to happen before your tests should go here.
/**
* Anything that needs to happen before your tests should go here.
-class XmlJs extends PHPUnit_Framework_TestCase {
+class XmlJsTest extends PHPUnit_Framework_TestCase {
/**
* @covers XmlJsCode::__construct
/**
* @covers XmlJsCode::__construct
use Wikimedia\TestingAccessWrapper;
use Wikimedia\TestingAccessWrapper;
-class EtcConfigTest extends PHPUnit_Framework_TestCase {
+class EtcdConfigTest extends PHPUnit_Framework_TestCase {
private function createConfigMock( array $options = [] ) {
return $this->getMockBuilder( EtcdConfig::class )
private function createConfigMock( array $options = [] ) {
return $this->getMockBuilder( EtcdConfig::class )
*
* @covers HTMLAutoCompleteSelectField
*/
*
* @covers HTMLAutoCompleteSelectField
*/
-class HtmlAutoCompleteSelectFieldTest extends MediaWikiTestCase {
+class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase {
public $options = [
'Bulgaria' => 'BGR',
public $options = [
'Bulgaria' => 'BGR',
* Unit tests for the HTMLCheckMatrix
* @covers HTMLCheckMatrix
*/
* Unit tests for the HTMLCheckMatrix
* @covers HTMLCheckMatrix
*/
-class HtmlCheckMatrixTest extends MediaWikiTestCase {
+class HTMLCheckMatrixTest extends MediaWikiTestCase {
static private $defaultOptions = [
'rows' => [ 'r1', 'r2' ],
'columns' => [ 'c1', 'c2' ],
static private $defaultOptions = [
'rows' => [ 'r1', 'r2' ],
'columns' => [ 'c1', 'c2' ],
* @group Media
* @covers MimeAnalyzer
*/
* @group Media
* @covers MimeAnalyzer
*/
-class MimeMagicTest extends PHPUnit_Framework_TestCase {
+class MimeAnalyzerTest extends PHPUnit_Framework_TestCase {
/** @var MimeAnalyzer */
private $mimeAnalyzer;
/** @var MimeAnalyzer */
private $mimeAnalyzer;
-class SvgTest extends MediaWikiMediaTestCase {
+class SVGTest extends MediaWikiMediaTestCase {
* @covers PPNode_Hash_Array
* @covers PPNode_Hash_Attr
*/
* @covers PPNode_Hash_Array
* @covers PPNode_Hash_Attr
*/
-class TagHookTest extends MediaWikiTestCase {
+class TagHooksTest extends MediaWikiTestCase {
public static function provideValidNames() {
return [
[ 'foo' ],
public static function provideValidNames() {
return [
[ 'foo' ],