Fixed sidebar tests on Windows. Can't use PHP_EOL here because \r\n is used only...
authorMax Semenik <maxsem@users.mediawiki.org>
Sun, 7 Aug 2011 08:08:36 +0000 (08:08 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sun, 7 Aug 2011 08:08:36 +0000 (08:08 +0000)
includes/Skin.php
tests/phpunit/skins/SideBarTest.php

index dfdb210..28a84f7 100644 (file)
@@ -1125,6 +1125,7 @@ abstract class Skin extends ContextSource {
                        if ( strpos( $line, '*' ) !== 0 ) {
                                continue;
                        }
+                       $line = rtrim( $line, "\r" ); // for Windows compat
 
                        if ( strpos( $line, '**' ) !== 0 ) {
                                $heading = trim( $line, '* ' );
index 914ea3a..47182a7 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+/**
+ * @group Skin
+ */
 class SideBarTest extends MediaWikiLangTestCase {
 
        /** A skin template, reinitialized before each test */