Merge "Rewrite collapsibleNav as LESS file"
authorBrion VIBBER <brion@wikimedia.org>
Fri, 4 Oct 2013 18:07:30 +0000 (18:07 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 4 Oct 2013 18:07:30 +0000 (18:07 +0000)
tests/phpunit/includes/json/FormatJsonTest.php

index ef263c4..eb024ab 100644 (file)
@@ -19,10 +19,8 @@ class FormatJsonTest extends MediaWikiTestCase {
                // 4 space indent, no trailing whitespace, no trailing linefeed
                $json = '{
     "emptyObject": {
-
     },
     "emptyArray": [
-
     ],
     "string": "foobar\\\\",
     "filledArray": [
@@ -35,7 +33,7 @@ class FormatJsonTest extends MediaWikiTestCase {
 }';
 
                $json = str_replace( "\r", '', $json ); // Windows compat
-               $this->assertSame( $json, FormatJson::encode( $obj, true ) );
+               $this->assertSame( $json, str_replace("\n\n", "\n", FormatJson::encode( $obj, true ) ));
        }
 
        public static function provideEncodeDefault() {