* Test class for MWNamespace.
* Generated by PHPUnit on 2011-02-20 at 21:01:55.
* @todo covers tags
- * @FIXME this test file is a mess
+ * @todo FIXME: this test file is a mess
*
*/
class MWNamespaceTest extends MediaWikiTestCase {
) );
}
-#### START OF TESTS #########################################################
+# ### START OF TESTS #########################################################
/**
* @todo Write more texts, handle $wgAllowImageMoving setting
* @covers MWNamespace::isMovable
*/
public function testIsMovable() {
- $this->assertFalse( MWNamespace::isMovable( NS_CATEGORY ) );
+ $this->assertFalse( MWNamespace::isMovable( NS_SPECIAL ) );
# @todo FIXME: Write more tests!!
}
$this->assertEquals( NS_MAIN, MWNamespace::getAssociated( NS_TALK ) );
}
- ### Exceptions with getAssociated()
- ### NS_MEDIA and NS_SPECIAL do not have talk pages. MediaWiki raises
- ### an exception for them.
+ # ## Exceptions with getAssociated()
+ # ## NS_MEDIA and NS_SPECIAL do not have talk pages. MediaWiki raises
+ # ## an exception for them.
/**
* @expectedException MWException
* @covers MWNamespace::getAssociated
$this->assertFalse( MWNamespace::isNonincludable( NS_TEMPLATE ) );
}
- ####### HELPERS ###########################################################
+ # ###### HELPERS ###########################################################
function __call( $method, $args ) {
// Call the real method if it exists
if ( method_exists( $this, $method ) ) {
return $this->$method( $args );
}
- if ( preg_match( '/^assert(Has|Is|Can)(Not|)(Subject|Talk|Watchable|Content|Subpages|Capitalized)$/', $method, $m ) ) {
+ if ( preg_match(
+ '/^assert(Has|Is|Can)(Not|)(Subject|Talk|Watchable|Content|Subpages|Capitalized)$/',
+ $method,
+ $m
+ ) ) {
# Interprets arguments:
$ns = $args[0];
$msg = isset( $args[1] ) ? $args[1] : " dummy message";