@@ 75-81 (lines=7) @@ | ||
72 | * @param string $startDate |
|
73 | * @param string $endDate |
|
74 | */ |
|
75 | public function testIsoChronicDecrease($date, $referenceDate, $length, $startDate, $endDate) |
|
76 | { |
|
77 | $isoChronic = new IsoChronic($date, $referenceDate, $length); |
|
78 | $isoChronic->previous(); |
|
79 | $this->assertEquals($startDate, $isoChronic->getStartDate()); |
|
80 | $this->assertEquals($endDate, $isoChronic->getEndDate()); |
|
81 | } |
|
82 | ||
83 | public function isoChronicDecreaseProvider() |
|
84 | { |
@@ 83-90 (lines=8) @@ | ||
80 | * @param string $startDate |
|
81 | * @param string $endDate |
|
82 | */ |
|
83 | public function testPreviousMonth($date, $startDate, $endDate) |
|
84 | { |
|
85 | $month = new Month($date); |
|
86 | $month->previous(); |
|
87 | ||
88 | $this->assertEquals($startDate, $month->getStartDate()); |
|
89 | $this->assertEquals($endDate, $month->getEndDate()); |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @return array |