@@ 20-26 (lines=7) @@ | ||
17 | } |
|
18 | ||
19 | /** @test */ |
|
20 | public function acceptStartAndEndArguments() |
|
21 | { |
|
22 | $range = new DateRange($this->start, $this->end); |
|
23 | ||
24 | $this->assertSame($this->start, $range->getStart()); |
|
25 | $this->assertSame($this->end, $range->getEnd()); |
|
26 | } |
|
27 | ||
28 | /** @test */ |
|
29 | public function acceptStartAndEndOneArrayArgument() |
|
@@ 29-35 (lines=7) @@ | ||
26 | } |
|
27 | ||
28 | /** @test */ |
|
29 | public function acceptStartAndEndOneArrayArgument() |
|
30 | { |
|
31 | $range = new DateRange([$this->start, $this->end]); |
|
32 | ||
33 | $this->assertSame($this->start, $range->getStart()); |
|
34 | $this->assertSame($this->end, $range->getEnd()); |
|
35 | } |
|
36 | ||
37 | /** @test */ |
|
38 | public function convertStringToDateTimeObject() |