From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- .../LocalisationUpdate/LocalisationUpdate.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'extensions/LocalisationUpdate/LocalisationUpdate.class.php') diff --git a/extensions/LocalisationUpdate/LocalisationUpdate.class.php b/extensions/LocalisationUpdate/LocalisationUpdate.class.php index 349c35f0..d4413ed7 100644 --- a/extensions/LocalisationUpdate/LocalisationUpdate.class.php +++ b/extensions/LocalisationUpdate/LocalisationUpdate.class.php @@ -78,4 +78,22 @@ class LocalisationUpdate { public static function getFilename( $language ) { return "l10nupdate-$language.json"; } + + /** + * Hook: UnitTestsList + */ + public static function setupUnitTests( array &$files ) { + $dir = __DIR__ . '/tests/phpunit'; + $directoryIterator = new RecursiveDirectoryIterator( $dir ); + $fileIterator = new RecursiveIteratorIterator( $directoryIterator ); + + /// @var SplFileInfo $fileInfo + foreach ( $fileIterator as $fileInfo ) { + if ( substr( $fileInfo->getFilename(), -8 ) === 'Test.php' ) { + $files[] = $fileInfo->getPathname(); + } + } + + return true; + } } -- cgit v1.2.2