#!/usr/bin/env php getQueue(); echo implode( "\n", array_keys( $extensionsAndSkins ) ); echo "\n\nTESTPATHS\n\n"; // Build a list of extension tests, based on autodiscovered tests as well as tests added with the // UnitTestsList hook. The list is only to be used in ExtensionsTestSuite. // This is a hack inside the hack, motivated by the fact that we can't access MediaWikiServices, or even // just the config needed to create a hook container, as early as when ExtensionsTestSuite::suite is called. // This particular hack can be removed once the UnitTestsList hook is removed (T298509) $registry = ExtensionRegistry::getInstance(); foreach ( $registry->getAllThings() as $info ) { $paths[] = dirname( $info['path'] ) . '/tests/phpunit'; } // Extensions can return a list of files or directories ( new HookRunner( MediaWikiServices::getInstance()->getHookContainer() ) )->onUnitTestsList( $paths ); echo implode( "\n", $paths );