wiki.techinc.nl/tests/phpunit/unit/includes/GlobalFunctions/WfRemoveDotSegmentsTest.php
Nikolas Nyby e87316c4a4 Resolve GlobalFunctions phpunit filename deprecation errors
PHPUnit wants the filenames of the tests to match the class name being
tested.

Bug: T337333
Change-Id: Icc450c900b6d4589515d86889403043a5e4ef690
2023-07-01 09:30:42 +00:00

19 lines
488 B
PHP

<?php
/**
* @group GlobalFunctions
* @covers ::wfRemoveDotSegments
*/
class WfRemoveDotSegmentsTest extends MediaWikiUnitTestCase {
/**
* Same tests as the UrlUtils method to ensure they don't fall out of sync
* @dataProvider UrlUtilsProviders::provideRemoveDotSegments
*/
public function testWfRemoveDotSegments( $inputPath, $outputPath ) {
$this->assertEquals(
$outputPath,
wfRemoveDotSegments( $inputPath ),
"Testing $inputPath expands to $outputPath"
);
}
}