Skip to content

Commit

Permalink
Remove unneeded properties
Browse files Browse the repository at this point in the history
  • Loading branch information
LucWollants committed Sep 11, 2024
1 parent 5b54431 commit b37c7b9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/Geocoding/CachedGeocodingServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

class CachedGeocodingServiceTest extends TestCase
{
private ArrayCache $cache;

/**
* @var GeocodingService&MockObject
*/
Expand All @@ -26,9 +24,8 @@ class CachedGeocodingServiceTest extends TestCase

public function setUp(): void
{
$this->cache = new ArrayCache();
$this->decoratee = $this->createMock(GeocodingService::class);
$this->service = new CachedGeocodingService($this->decoratee, $this->cache);
$this->service = new CachedGeocodingService($this->decoratee, new ArrayCache());
}

/**
Expand Down

0 comments on commit b37c7b9

Please sign in to comment.