Skip to content

Commit 756f00f

Browse files
SvenRtbgcweiske
authored andcommitted
Remove unnecessary logger instantiation
The tests never check if they contain anything
1 parent 6cbf761 commit 756f00f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/OtherTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ public function testPrivatePropertySetterWithoutDoc()
264264
{
265265
$jm = new JsonMapper();
266266
$jm->bExceptionOnUndefinedProperty = true;
267-
$jm->setLogger(new JsonMapperTest_Logger());
268267

269268
$result = $jm->map(json_decode('{"privatePropertySetterWithoutDoc" : 1}'), new JsonMapperTest_PrivateWithSetter());
270269
$this->assertSame(1, $result->getPrivatePropertySetterWithoutDoc());
@@ -274,7 +273,6 @@ public function testPrivatePropertyNullableNotNullSetterWithoutDoc()
274273
{
275274
$jm = new JsonMapper();
276275
$jm->bExceptionOnUndefinedProperty = true;
277-
$jm->setLogger(new JsonMapperTest_Logger());
278276

279277
$result = $jm->map(json_decode('{"privatePropertyNullableSetterWithoutDoc" : 1}'), new JsonMapperTest_PrivateWithSetter());
280278
$this->assertSame(1, $result->getPrivatePropertyNullableSetterWithoutDoc());
@@ -284,7 +282,6 @@ public function testPrivatePropertyNullableNullSetterWithoutDoc()
284282
{
285283
$jm = new JsonMapper();
286284
$jm->bExceptionOnUndefinedProperty = true;
287-
$jm->setLogger(new JsonMapperTest_Logger());
288285

289286
$result = $jm->map(json_decode('{"privatePropertyNullableSetterWithoutDoc" : null}'), new JsonMapperTest_PrivateWithSetter());
290287
$this->assertNull($result->getPrivatePropertyNullableSetterWithoutDoc());
@@ -294,7 +291,6 @@ public function testPrivateArrayOfSimple()
294291
{
295292
$jm = new JsonMapper();
296293
$jm->bExceptionOnUndefinedProperty = true;
297-
$jm->setLogger(new JsonMapperTest_Logger());
298294

299295
$result = $jm->map(
300296
json_decode(

0 commit comments

Comments
 (0)