Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function testPnaValidShort() |
||
23 | { |
||
24 | $defNr = '2017-10-01'; |
||
25 | $this->assertTrue(Date::isValid($defNr, false)); |
||
26 | $res = new Date($defNr); |
||
27 | $this->assertEquals('2017-10-01', $res->get()); |
||
28 | $this->assertEquals('2017', $res->getYear()); |
||
29 | $this->assertEquals('10', $res->getMonth()); |
||
30 | $this->assertEquals('01', $res->getDay()); |
||
31 | } |
||
32 | |||
42 |