00001 <?php 00011 class ResourcesTest extends MediaWikiTestCase { 00012 public function testAlphabeticalOrder() { 00013 require __DIR__ . '/../../Resources.php'; 00014 00015 $sorted = $wgResourceModules; 00016 ksort( $sorted ); 00017 00018 $this->assertEquals( 00019 array_keys( $sorted ), 00020 array_keys( $wgResourceModules ), 00021 "Modules are defined in alphabetical order." 00022 ); 00023 } 00024 }