mediawiki/extensions/MultiMaps: main (log #528170)

sourcepatches

This run took 17 seconds.

From e67f4d91ed46293fb8c3985c4125d13ec5815fc5 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sun, 7 Nov 2021 03:09:35 +0000
Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 38.0.0

Change-Id: I5f91a03a3921f26a1d03936b5e315630745dbc7f
---
 composer.json                                        | 2 +-
 tests/phpunit/includes/PointTest.php                 | 8 ++++----
 tests/phpunit/includes/mapelements/PolygonTest.php   | 4 ++--
 tests/phpunit/includes/mapelements/RectangleTest.php | 8 ++++----
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/composer.json b/composer.json
index e278dcc..21feed2 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
 {
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "37.0.0",
+		"mediawiki/mediawiki-codesniffer": "38.0.0",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
 		"php-parallel-lint/php-parallel-lint": "1.3.1"
diff --git a/tests/phpunit/includes/PointTest.php b/tests/phpunit/includes/PointTest.php
index 8655cee..3c73d64 100644
--- a/tests/phpunit/includes/PointTest.php
+++ b/tests/phpunit/includes/PointTest.php
@@ -29,14 +29,14 @@ class PointTest extends \PHPUnit\Framework\TestCase {
 	 * @covers MultiMaps\Point::__set
 	 */
 	public function test__set__get() {
-		$this->assertEquals( $this->object->lat, 123 );
-		$this->assertEquals( $this->object->lon, 321 );
+		$this->assertEquals( 123, $this->object->lat );
+		$this->assertEquals( 321, $this->object->lon );
 
 		$this->object->lat = "789";
 		$this->object->lon = 987;
 
-		$this->assertEquals( $this->object->lat, 789 );
-		$this->assertEquals( $this->object->lon, 987 );
+		$this->assertEquals( 789, $this->object->lat );
+		$this->assertEquals( 987, $this->object->lon );
 		$this->assertTrue( $this->object->isValid() );
 
 		$this->object->hello = "wassup!!!";
diff --git a/tests/phpunit/includes/mapelements/PolygonTest.php b/tests/phpunit/includes/mapelements/PolygonTest.php
index 919f126..7292a08 100644
--- a/tests/phpunit/includes/mapelements/PolygonTest.php
+++ b/tests/phpunit/includes/mapelements/PolygonTest.php
@@ -27,8 +27,8 @@ class PolygonTest extends \PHPUnit\Framework\TestCase {
 	public function testGetElementName() {
 		// Remove the following lines when you implement this test.
 		$this->assertEquals(
-			$this->object->getElementName(),
-			'Polygon'
+			'Polygon',
+			$this->object->getElementName()
 		);
 	}
 
diff --git a/tests/phpunit/includes/mapelements/RectangleTest.php b/tests/phpunit/includes/mapelements/RectangleTest.php
index 90d5bda..578a869 100644
--- a/tests/phpunit/includes/mapelements/RectangleTest.php
+++ b/tests/phpunit/includes/mapelements/RectangleTest.php
@@ -26,8 +26,8 @@ class RectangleTest extends \PHPUnit\Framework\TestCase {
 	 */
 	public function testGetElementName() {
 		$this->assertEquals(
-				$this->object->getElementName(),
-				'Rectangle'
+				'Rectangle',
+				$this->object->getElementName()
 				);
 	}
 
@@ -36,8 +36,8 @@ class RectangleTest extends \PHPUnit\Framework\TestCase {
 	 */
 	public function testParseCoordinates() {
 		$this->assertEquals(
-				$this->object->getElementName(),
-				'Rectangle'
+				'Rectangle',
+				$this->object->getElementName()
 				);
 	}
 }
-- 
2.20.1

**purged**
Source code is licensed under the AGPL.