summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php')
-rw-r--r--tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php b/tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php
index be6c99e7..9bb74873 100644
--- a/tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php
+++ b/tests/phpunit/includes/GlobalFunctions/wfAssembleUrlTest.php
@@ -1,10 +1,11 @@
<?php
/**
- * Unit tests for wfAssembleUrl()
+ * @covers ::wfAssembleUrl
*/
-
-class wfAssembleUrl extends MediaWikiTestCase {
- /** @dataProvider provideURLParts */
+class WfAssembleUrlTest extends MediaWikiTestCase {
+ /**
+ * @dataProvider provideURLParts
+ */
public function testWfAssembleUrl( $parts, $output ) {
$partsDump = print_r( $parts, true );
$this->assertEquals(
@@ -19,7 +20,7 @@ class wfAssembleUrl extends MediaWikiTestCase {
*
* @return array
*/
- public function provideURLParts() {
+ public static function provideURLParts() {
$schemes = array(
'' => array(),
'//' => array(
@@ -83,12 +84,11 @@ class wfAssembleUrl extends MediaWikiTestCase {
$parts['query'] = $query;
$url .= '?' . $query;
}
- if( $fragment ) {
+ if ( $fragment ) {
$parts['fragment'] = $fragment;
$url .= '#' . $fragment;
}
-
$cases[] = array(
$parts,
$url,