Skip to content

Commit c360894

Browse files
SvenRtbgcweiske
authored andcommitted
Call assertions via "$this" everywhere
1 parent 90dd474 commit c360894

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/Array_PHP74_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testJsonMapper()
2121
$json = json_decode('{"files": ["test.txt"]}');
2222
$jsonMapper = new \JsonMapper();
2323
$array = $jsonMapper->map($json, new JsonMapperTest_PHP74Array());
24-
self::assertCount(1, $array->files);
24+
$this->assertCount(1, $array->files);
2525
}
2626

2727
public function testMapArrayValueToStringProperty()

tests/Array_PHP80_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testJsonMapper()
2222
$jsonMapper = new \JsonMapper();
2323
$jsonMapper->bIgnoreVisibility = true;
2424
$array = $jsonMapper->map($json, JsonMapperTest_PHP80Array::class);
25-
self::assertCount(1, $array->getFiles());
26-
self::assertInstanceOf(JsonMapperTest_ArrayValueForStringProperty::class, $array->getFiles()[0]);
25+
$this->assertCount(1, $array->getFiles());
26+
$this->assertInstanceOf(JsonMapperTest_ArrayValueForStringProperty::class, $array->getFiles()[0]);
2727
}
2828
}

tests/NameMappingTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testItSetKeysIfReturnedByUndefinedPropertyHandler(): void
2727
new JsonMapperTest_Simple()
2828
);
2929

30-
self::assertSame('abc', $sn->hyphenValue);
30+
$this->assertSame('abc', $sn->hyphenValue);
3131
}
3232

3333
public function testItDoesNotMapKeyIfUndefinedPropertyHandlerDoesNotReturnValue(): void
@@ -45,6 +45,6 @@ public function testItDoesNotMapKeyIfUndefinedPropertyHandlerDoesNotReturnValue(
4545
new JsonMapperTest_Simple()
4646
);
4747

48-
self::assertNull($sn->hyphenValue);
48+
$this->assertNull($sn->hyphenValue);
4949
}
5050
}

0 commit comments

Comments
 (0)