From 58e23da40f774b92dcd71be56d7d2e2918950772 Mon Sep 17 00:00:00 2001 From: Christian Aistleitner Date: Thu, 18 Dec 2014 14:13:07 +0100 Subject: [PATCH] Make PHPCS pass on JsonContentTest Change-Id: I1054d7d0e903e3be7cb815035dddb0f34bcd6334 --- .../phpunit/includes/content/JsonContentTest.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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>"' . + '
', ), ); } -- 2.20.1