getFilesAsArray( $path, $suffixes ); $this->addTestFiles( $matchingFiles ); } else { // Add a single test case or suite class $this->addTestFile( $path ); } } if ( !count( $paths ) ) { $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 ); } }