addTestFile( $file ); } if ( !count( $files ) ) { $this->addTest( new DummyExtensionsTest( 'testNothing' ) ); } } public static function suite() { return new self; } } /** * Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".' * when no extensions with tests are used. */ class DummyExtensionsTest extends MediaWikiTestCase { public function testNothing() { $this->assertTrue( true ); } }