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
16 lines
376 B
PHP
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' );
|
|
}
|
|
}
|