wiki.techinc.nl/tests/phpunit/includes/ServiceWiringTest.php
Tim Starling 421b4258b5 Sort MediaWikiServices and ServiceWiring alphabetically
Don't sort them asciibetically, which is a weird sort order people only
use by accident.

Change-Id: I69be64dab104130841855f2ce58bf94667c0c300
2019-04-10 20:59:49 +10:00

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' );
}
}