3 * This test suite runs unit tests registered by extensions.
4 * See http://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList for details of how to register your tests.
7 class ExtensionsTestSuite
extends PHPUnit_Framework_TestSuite
{
8 public function __construct() {
11 wfRunHooks( 'UnitTestsList', array( &$files ) );
12 foreach ( $files as $file ) {
13 $this->addTestFile( $file );
15 if ( !count( $files ) ) {
16 $this->addTest( new DummyExtensionsTest( 'testNothing' ) );
20 public static function suite() {
26 * Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".'
27 * when no extensions with tests are used.
29 class DummyExtensionsTest
extends MediaWikiTestCase
{
30 public function testNothing() {
31 $this->assertTrue( true );