aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/ServiceWiringTest.php
blob: 74e8e1b3eab8066c93acddbf6a3809f07c8e7c12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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' );
	}
}