Skip to content

Commit e96794a

Browse files
committed
Remove clock usage
1 parent ee12753 commit e96794a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/DynamoDbCacheBuilderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use DateTimeInterface;
77
use Psr\Clock\ClockInterface;
88
use ReflectionObject;
9-
use Rikudou\Clock\Clock;
109
use Rikudou\DynamoDbCache\Converter\CacheItemConverterRegistry;
1110
use Rikudou\DynamoDbCache\DynamoDbCache;
1211
use Rikudou\DynamoDbCache\DynamoDbCacheBuilder;
@@ -53,7 +52,7 @@ public function testImmutability()
5352
{
5453
$registry = new CacheItemConverterRegistry();
5554
$encoder = new JsonItemEncoder();
56-
$clock = new Clock();
55+
$clock = ClockHelper::psrClock();
5756

5857
self::assertNotSame($this->instance, $this->instance->withClock($clock));
5958
self::assertNotSame($this->instance, $this->instance->withConverterRegistry($registry));

0 commit comments

Comments
 (0)