wiki.techinc.nl/tests/phpunit/includes/ServiceWiringTest.php
Aryeh Gregor 3c45e203a8 Alphabetize service lists
Adding everything at the end makes the list arbitrarily ordered, and
also invites lots of merge conflicts as new things are added.

Change-Id: I58bcca4fa79140f5d5f2f6ef447e67035cc37aae
2018-08-09 22:19:58 -06:00

16 lines
376 B
PHP

<?php
/**
* @coversNothing
*/
class ServiceWiringTest extends MediaWikiTestCase {
public function testServicesAreSorted() {
global $IP;
$services = array_keys( require "$IP/includes/ServiceWiring.php" );
$sortedServices = $services;
sort( $sortedServices );
$this->assertSame( $sortedServices, $services,
'Please keep services sorted alphabetically' );
}
}