From: Christian Aistleitner Date: Thu, 18 Dec 2014 13:13:07 +0000 (+0100) Subject: Make PHPCS pass on JsonContentTest X-Git-Tag: 1.31.0-rc.0~12920^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=58e23da40f774b92dcd71be56d7d2e2918950772;p=lhc%2Fweb%2Fwiklou.git Make PHPCS pass on JsonContentTest Change-Id: I1054d7d0e903e3be7cb815035dddb0f34bcd6334 --- diff --git a/tests/phpunit/includes/content/JsonContentTest.php b/tests/phpunit/includes/content/JsonContentTest.php index 0ad8ecc803..0df8d40936 100644 --- a/tests/phpunit/includes/content/JsonContentTest.php +++ b/tests/phpunit/includes/content/JsonContentTest.php @@ -74,7 +74,11 @@ class JsonContentTest extends MediaWikiLangTestCase { */ public function testPreSaveTransform( $input, $transformed ) { $obj = new JsonContent( $input ); - $newObj = $obj->preSaveTransform( $this->getMockTitle(), $this->getMockUser(), $this->getMockParserOptions() ); + $newObj = $obj->preSaveTransform( + $this->getMockTitle(), + $this->getMockUser(), + $this->getMockParserOptions() + ); $this->assertTrue( $newObj->equals( new JsonContent( $transformed ) ) ); } @@ -99,11 +103,13 @@ class JsonContentTest extends MediaWikiLangTestCase { return array( array( (object)array(), - '
Empty object
' + '' . + '
Empty object
' ), array( (object)array( 'foo' ), - '
0"foo"
' + '' . + '
0"foo"
' ), array( (object)array( 'foo', 'bar' ), @@ -125,7 +131,9 @@ class JsonContentTest extends MediaWikiLangTestCase { ), array( (object)array( ''), - '
0"<script>alert("evil!")</script>"
', + '
0"' . + '<script>alert("evil!")</script>"' . + '
', ), ); }