Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class CounterTest extends TestCase |
||
14 | { |
||
15 | /** |
||
16 | * @test |
||
17 | */ |
||
18 | public function resets_in_cannot_be_negative(): void |
||
19 | { |
||
20 | $this->assertSame(0, (new Counter(10, time() - 10))->resetsIn()); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @test |
||
25 | */ |
||
26 | public function resets_at_cannot_be_in_the_past(): void |
||
27 | { |
||
28 | $this->assertSame(time(), (new Counter(10, time() - 10))->resetsAt()); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @test |
||
33 | */ |
||
34 | public function can_add_hit(): void |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @test |
||
44 | */ |
||
45 | public function add_hit_is_immutable(): void |
||
51 | } |
||
52 | } |
||
53 |