class ResourceLoaderTest extends PHPUnit_Framework_TestCase {
protected static $resourceLoaderRegisterModulesHook;
-
+
/* Hook Methods */
/**
}
/* Provider Methods */
-
public function provideValidModules() {
return array(
array( 'TEST.validModule1', new ResourceLoaderTestModule() ),
}
/* Test Methods */
-
+
/**
* Ensures that the ResourceLoaderRegisterModules hook is called when a new ResourceLoader object is constructed
* @covers ResourceLoader::__construct
$resourceLoader->register( $name, $module );
$this->assertEquals( $module, $resourceLoader->getModule( $name ) );
}
-
+
/**
* Allthough ResourceLoader::register uses type hinting to prevent arbitrary information being passed through as a
* ResourceLoaderModule object, null can still get through.
- *
+ *
* @depends testCreatingNewResourceLoaderCallsRegistrationHook
* @covers ResourceLoader::register
* @covers ResourceLoader::getModule
<?php
/**
* Bootstrapping for MediaWiki PHPUnit tests
- *
+ *
* @file
*/
} else {
# Keep the old pre PHPUnit 3.5.0 behaviour for compatibility
require_once( 'PHPUnit/TextUI/Command.php' );
-}
+}
PHPUnit_TextUI_Command::main();