Minor tweaks to r102595: remove echo that clutters output, etc
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 10 Nov 2011 15:20:01 +0000 (15:20 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 10 Nov 2011 15:20:01 +0000 (15:20 +0000)
tests/phpunit/includes/GlobalFunctions/wfRemoveDotSegmentsTest.php

index dd86c02..c606005 100644 (file)
@@ -6,10 +6,11 @@
 class wfRemoveDotSegments extends MediaWikiTestCase {
        /** @dataProvider providePaths */
        public function testWfRemoveDotSegments( $inputPath, $outputPath ) {
-               $actualPath = wfRemoveDotSegments( $inputPath );
-               $message = "Testing $inputPath expands to $outputPath";
-               echo $message . "\n";
-               $this->assertEquals( $outputPath, $actualPath, $message );
+               $this->assertEquals(
+                       $outputPath,
+                       wfRemoveDotSegments( $inputPath ),
+                       "Testing $inputPath expands to $outputPath"
+               );
        }
 
        /**