From: Kunal Mehta Date: Sun, 7 Aug 2016 09:27:09 +0000 (-0700) Subject: registration: Add hint about UnitTestsList hook in conversion script X-Git-Tag: 1.31.0-rc.0~6133^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=2b39f1ea2db1415c57558db955ea66d32b2d2b86;p=lhc%2Fweb%2Fwiklou.git registration: Add hint about UnitTestsList hook in conversion script Change-Id: Ia161c2e10943e75c98ee8e0d2341bc2c9a418faf --- diff --git a/maintenance/convertExtensionToRegistration.php b/maintenance/convertExtensionToRegistration.php index 6d2a0e924b..e83d7c63ac 100644 --- a/maintenance/convertExtensionToRegistration.php +++ b/maintenance/convertExtensionToRegistration.php @@ -230,6 +230,13 @@ class ConvertExtensionToRegistration extends Maintenance { public function handleHooks( $realName, $value ) { foreach ( $value as $hookName => &$handlers ) { + if ( $hookName === 'UnitTestsList' ) { + $this->output( "Note: the UnitTestsList hook is no longer necessary as " . + "long as your tests are located in the \"tests/phpunit/\" directory. " . + "Please see for more details.\n" + ); + } foreach ( $handlers as $func ) { if ( $func instanceof Closure ) { $this->error( "Error: Closures cannot be converted to JSON. " .