Don't sort them asciibetically, which is a weird sort order people only use by accident. Change-Id: I69be64dab104130841855f2ce58bf94667c0c300
16 lines
383 B
PHP
16 lines
383 B
PHP
<?php
|
|
|
|
/**
|
|
* @coversNothing
|
|
*/
|
|
class ServiceWiringTest extends MediaWikiTestCase {
|
|
public function testServicesAreSorted() {
|
|
global $IP;
|
|
$services = array_keys( require "$IP/includes/ServiceWiring.php" );
|
|
$sortedServices = $services;
|
|
natcasesort( $sortedServices );
|
|
|
|
$this->assertSame( $sortedServices, $services,
|
|
'Please keep services sorted alphabetically' );
|
|
}
|
|
}
|