@@ 51-55 (lines=5) @@ | ||
48 | $serviceLoader = $this->createMock(DynamicServiceLoadingService::class); |
|
49 | $serviceLoader->expects(self::exactly(2)) |
|
50 | ->method("loadRankingSystemService") |
|
51 | ->willReturnCallback(function ($earliestInfluence) { |
|
52 | $mock = $this->createMock(\Tfboe\FmLib\Service\RankingSystem\RankingSystemService::class); |
|
53 | $mock->method("getEarliestInfluence")->willReturn(new \DateTime($earliestInfluence)); |
|
54 | return $mock; |
|
55 | }); |
|
56 | /** @var DynamicServiceLoadingService $serviceLoader */ |
|
57 | /** @noinspection PhpParamsInspection */ |
|
58 | $service = new RankingSystemService($serviceLoader, |
|
@@ 180-184 (lines=5) @@ | ||
177 | $serviceLoader = $this->createMock(DynamicServiceLoadingService::class); |
|
178 | $serviceLoader->expects(self::exactly(3)) |
|
179 | ->method("loadRankingSystemService") |
|
180 | ->willReturnCallback(function ($earliestInfluence) { |
|
181 | $mock = $this->createMock(\Tfboe\FmLib\Service\RankingSystem\RankingSystemService::class); |
|
182 | $mock->method("getEarliestInfluence")->willReturn(new \DateTime($earliestInfluence)); |
|
183 | return $mock; |
|
184 | }); |
|
185 | /** @var DynamicServiceLoadingService $serviceLoader */ |
|
186 | /** @noinspection PhpParamsInspection */ |
|
187 | $service = new RankingSystemService($serviceLoader, |