<?php
/**
- * Unit tests for wfAssembleUrl()
+ * Tests for wfAssembleUrl()
*/
-
-class wfAssembleUrl extends MediaWikiTestCase {
+class WfAssembleUrlTest extends MediaWikiTestCase {
/** @dataProvider provideURLParts */
public function testWfAssembleUrl( $parts, $output ) {
$partsDump = print_r( $parts, true );
<?php
/**
- * Unit tests for wfBCP47()
+ * Tests for wfBCP47()
*/
-class wfBCP47 extends MediaWikiTestCase {
+class WfBCP47Test extends MediaWikiTestCase {
/**
* test @see wfBCP47().
* Please note the BCP explicitly state that language codes are case
<?php
-
/**
* Tests for wfBaseConvert()
*/
-class wfBaseConvertTest extends MediaWikiTestCase {
+class WfBaseConvertTest extends MediaWikiTestCase {
public static function provideSingleDigitConversions() {
return array(
// 2 3 5 8 10 16 36
/**
* Tests for wfBaseName()
*/
-class wfBaseName extends MediaWikiTestCase {
+class WfBaseNameTest extends MediaWikiTestCase {
/**
* @dataProvider providePaths
*/
<?php
/**
- * Unit tests for wfExpandUrl()
+ * Tests for wfExpandUrl()
*/
-
-class wfExpandUrl extends MediaWikiTestCase {
+class WfExpandUrlTest extends MediaWikiTestCase {
/** @dataProvider provideExpandableUrls */
public function testWfExpandUrl( $fullUrl, $shortUrl, $defaultProto, $server, $canServer, $httpsMode, $message ) {
// Fake $wgServer and $wgCanonicalServer
<?php
-class wfGetCaller extends MediaWikiTestCase {
+class WfGetCallerTest extends MediaWikiTestCase {
function testZero() {
$this->assertEquals( __METHOD__, wfGetCaller( 1 ) );
}
function testOne() {
- $this->assertEquals( "wfGetCaller::testOne", self::callerOne() );
+ $this->assertEquals( 'WfGetCallerTest::testOne', self::callerOne() );
}
function intermediateFunction( $level = 2, $n = 0 ) {
}
function testTwo() {
- $this->assertEquals( "wfGetCaller::testTwo", self::intermediateFunction() );
+ $this->assertEquals( 'WfGetCallerTest::testTwo', self::intermediateFunction() );
}
function testN() {
- $this->assertEquals( "wfGetCaller::testN", self::intermediateFunction( 2, 0 ) );
- $this->assertEquals( "wfGetCaller::intermediateFunction", self::intermediateFunction( 1, 0 ) );
+ $this->assertEquals( 'WfGetCallerTest::testN', self::intermediateFunction( 2, 0 ) );
+ $this->assertEquals( 'WfGetCallerTest::intermediateFunction', self::intermediateFunction( 1, 0 ) );
for ( $i = 0; $i < 10; $i++ )
- $this->assertEquals( "wfGetCaller::intermediateFunction", self::intermediateFunction( $i + 1, $i ) );
+ $this->assertEquals( 'WfGetCallerTest::intermediateFunction', self::intermediateFunction( $i + 1, $i ) );
}
}
<?php
/**
- * Unit tests for wfRemoveDotSegments()
+ * Tests for wfRemoveDotSegments()
*/
-
-class wfRemoveDotSegments extends MediaWikiTestCase {
+class WfRemoveDotSegmentsTest extends MediaWikiTestCase {
/** @dataProvider providePaths */
public function testWfRemoveDotSegments( $inputPath, $outputPath ) {
$this->assertEquals(
<?php
-class wfShorthandToIntegerTest extends MediaWikiTestCase {
+class WfShorthandToIntegerTest extends MediaWikiTestCase {
/**
* @dataProvider provideABunchOfShorthands
*/
<?php
-
/*
* Tests for wfTimestamp()
*/
-class wfTimestamp extends MediaWikiTestCase {
+class WfTimestampTest extends MediaWikiTestCase {
/**
* @dataProvider provideNormalTimestamps
*/
<?php
/**
- * Tests for includes/GlobalFunctions.php -> wfUrlencode()
+ * Tests for wfUrlencode()
*
* The function only need a string parameter and might react to IIS7.0
*/
-
-class wfUrlencodeTest extends MediaWikiTestCase {
+class WfUrlencodeTest extends MediaWikiTestCase {
#### TESTS ##############################################################
/** @dataProvider provideURLS */