From 2b39f1ea2db1415c57558db955ea66d32b2d2b86 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 7 Aug 2016 02:27:09 -0700 Subject: [PATCH] registration: Add hint about UnitTestsList hook in conversion script Change-Id: Ia161c2e10943e75c98ee8e0d2341bc2c9a418faf --- maintenance/convertExtensionToRegistration.php | 7 +++++++ 1 file changed, 7 insertions(+) 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. " . -- 2.20.1