Skip to content

Commit

Permalink
Added test for JsonSerialize (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Apr 17, 2024
1 parent 8d4fc84 commit f60fcb1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace TomasVotruba\UnusedPublic\Tests\Rules\UnusedPublicClassMethodRule\Fixture;

class SkipJsonSerialize implements \JsonSerializable {
public function jsonSerialize() : array {
return [];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ public static function provideData(): Iterator
yield [[__DIR__ . '/Fixture/plain.php', __DIR__ . '/Source/Caller1.php'], []];
yield [[__DIR__ . '/Fixture/plain-call-user-func.php', __DIR__ . '/Source/Caller1.php'], []];
yield [[__DIR__ . '/Fixture/SkipCrashBug89.php.inc'], []];

yield [[__DIR__ . '/Fixture/SkipJsonSerialize.php'], []];
}

/**
Expand Down

0 comments on commit f60fcb1

Please sign in to comment.