Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function testGetQuery(): void |
||
24 | { |
||
25 | $start = new DateTime(); |
||
26 | $end = new DateTime('tomorrow'); |
||
27 | |||
28 | $filter = new RangeFilter($start, $end); |
||
29 | |||
30 | static::assertSame([ |
||
31 | 'foo' => $start->getTimestamp(), |
||
32 | 'bar' => $end->getTimestamp(), |
||
33 | ], $filter->getQuery('foo', 'bar')); |
||
34 | } |
||
35 | } |
||
36 |