Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function testEnsureValidValue() |
||
31 | { |
||
32 | $year = $this->year; |
||
33 | $month = $this->month; |
||
34 | $this->assertEquals($this->date, Date::ensureValidValue("$year-$month")); |
||
35 | $this->assertEquals($this->date, Date::ensureValidValue("$year-$month-01")); |
||
36 | $this->assertEquals($this->date, Date::ensureValidValue("$month.$year")); |
||
37 | $this->assertEquals($this->date, Date::ensureValidValue("1.$month.$year")); |
||
38 | } |
||
39 | } |
||
40 |