Remove redundant comment-stripping in OutputPageTest
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 21 Aug 2015 14:52:09 +0000 (16:52 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 21 Aug 2015 14:52:09 +0000 (16:52 +0200)
Follows-up 471a3bfb3d which removed the cacheReport from the output.

Change-Id: I3eb701cf5cd5a46f2f9aed23cb830347d999043e

tests/phpunit/includes/OutputPageTest.php

index 85c2220..8c8b8b2 100644 (file)
@@ -256,8 +256,7 @@ class OutputPageTest extends MediaWikiTestCase {
                        ) ),
                ) );
                $links = $method->invokeArgs( $out, $args );
-               // Strip comments to avoid variation due to wgDBname in WikiID and cache key
-               $actualHtml = preg_replace( '#/\*[^*]+\*/#', '', implode( "\n", $links['html'] ) );
+               $actualHtml = implode( "\n", $links['html'] );
                $this->assertEquals( $expectedHtml, $actualHtml );
        }
 }