ServiceWiringTest.php 376 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @coversNothing
  4. */
  5. class ServiceWiringTest extends MediaWikiTestCase {
  6. public function testServicesAreSorted() {
  7. global $IP;
  8. $services = array_keys( require "$IP/includes/ServiceWiring.php" );
  9. $sortedServices = $services;
  10. sort( $sortedServices );
  11. $this->assertSame( $sortedServices, $services,
  12. 'Please keep services sorted alphabetically' );
  13. }
  14. }