55use Cosmastech \StatsDClientAdapter \Adapters \InMemory \InMemoryClientAdapter ;
66use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \InMemoryStatsRecord ;
77use Cosmastech \StatsDClientAdapter \Tests \BaseTestCase ;
8- use Cosmastech \StatsDClientAdapter \Tests \Doubles \ClockStub ;
98use Cosmastech \StatsDClientAdapter \Tests \Doubles \TagNormalizerSpy ;
10- use DateTimeImmutable ;
119use PHPUnit \Framework \Attributes \Test ;
1210
1311class InMemoryTest extends BaseTestCase
@@ -16,7 +14,7 @@ class InMemoryTest extends BaseTestCase
1614 public function getStats_returnsInMemoryStatsRecord (): void
1715 {
1816 // Given
19- $ inMemoryClient = new InMemoryClientAdapter (new ClockStub ( new DateTimeImmutable ()) );
17+ $ inMemoryClient = new InMemoryClientAdapter ();
2018
2119 // When
2220 $ record = $ inMemoryClient ->getStats ();
@@ -30,7 +28,7 @@ public function getStats_returnsInMemoryStatsRecord(): void
3028 public function reset_clearsStats (): void
3129 {
3230 // Given
33- $ inMemoryClient = new InMemoryClientAdapter (new ClockStub ( new DateTimeImmutable ()) );
31+ $ inMemoryClient = new InMemoryClientAdapter ();
3432
3533 // And set some data
3634 $ inMemoryClient ->increment ("bogus " , 1 , ["tag1 " => true ], 99 );
@@ -49,7 +47,7 @@ public function reset_clearsStats(): void
4947 public function setTagNormalizer (): void
5048 {
5149 // Given
52- $ inMemoryClient = new InMemoryClientAdapter (new ClockStub ( new DateTimeImmutable ()) );
50+ $ inMemoryClient = new InMemoryClientAdapter ();
5351
5452 // And
5553 $ tagNormalizerSpy = new TagNormalizerSpy ();
@@ -66,7 +64,7 @@ public function setTagNormalizer(): void
6664 public function getClient_returnsNull (): void
6765 {
6866 // Given
69- $ inMemoryClient = new InMemoryClientAdapter (new ClockStub ( new DateTimeImmutable ()) );
67+ $ inMemoryClient = new InMemoryClientAdapter ();
7068
7169 // When
7270 $ client = $ inMemoryClient ->getClient ();
0 commit comments