MediaWiki  1.23.15
ExtensionsTestSuite.php
Go to the documentation of this file.
1 <?php
7 class ExtensionsTestSuite extends PHPUnit_Framework_TestSuite {
8  public function __construct() {
9  parent::__construct();
10  $files = array();
11  wfRunHooks( 'UnitTestsList', array( &$files ) );
12  foreach ( $files as $file ) {
13  $this->addTestFile( $file );
14  }
15  if ( !count( $files ) ) {
16  $this->addTest( new DummyExtensionsTest( 'testNothing' ) );
17  }
18  }
19 
20  public static function suite() {
21  return new self;
22  }
23 }
24 
30  public function testNothing() {
31  $this->assertTrue( true );
32  }
33 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
$files
$files
Definition: importImages.php:67
DummyExtensionsTest\testNothing
testNothing()
Definition: ExtensionsTestSuite.php:30
ExtensionsTestSuite\__construct
__construct()
Definition: ExtensionsTestSuite.php:8
ExtensionsTestSuite\suite
static suite()
Definition: ExtensionsTestSuite.php:20
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
wfRunHooks
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
Definition: GlobalFunctions.php:4066
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
DummyExtensionsTest
Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".
Definition: ExtensionsTestSuite.php:29
$file
if(PHP_SAPI !='cli') $file
Definition: UtfNormalTest2.php:30
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
ExtensionsTestSuite
This test suite runs unit tests registered by extensions.
Definition: ExtensionsTestSuite.php:7