2011-11-15 17:38:20 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
2014-07-18 19:35:43 +00:00
|
|
|
* @group GlobalFunctions
|
2013-10-24 09:53:24 +00:00
|
|
|
* @covers ::wfAssembleUrl
|
2011-11-15 17:38:20 +00:00
|
|
|
*/
|
2019-07-13 20:50:28 +00:00
|
|
|
class WfAssembleUrlTest extends MediaWikiUnitTestCase {
|
2013-10-24 09:53:24 +00:00
|
|
|
/**
|
2022-05-16 02:14:33 +00:00
|
|
|
* Same tests as the UrlUtils method to ensure they don't fall out of sync
|
|
|
|
|
* @dataProvider UrlUtilsProviders::provideAssemble
|
2013-10-24 09:53:24 +00:00
|
|
|
*/
|
2011-11-15 17:38:20 +00:00
|
|
|
public function testWfAssembleUrl( $parts, $output ) {
|
|
|
|
|
$partsDump = print_r( $parts, true );
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
$output,
|
|
|
|
|
wfAssembleUrl( $parts ),
|
|
|
|
|
"Testing $partsDump assembles to $output"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|