| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testRFC2550() |
||
| 23 | { |
||
| 24 | // Parsing a "normal" y40k date |
||
| 25 | $date = $this->calendar->parse('40000', 'y'); |
||
| 26 | |||
| 27 | $this->assertInstanceOf('DateTimeinterface', $date); |
||
| 28 | $this->assertEquals($date->format('Y'), '40000'); |
||
| 29 | |||
| 30 | // Now formatting it property : |
||
| 31 | $this->assertEquals($this->calendar->format($date, 'y-m-d'), 'A40000-01-01'); |
||
| 32 | |||
| 33 | // Parsing a RFC2550 date : |
||
| 34 | $date = $this->calendar->parse('A10000', 'y'); |
||
| 35 | $this->assertInstanceOf('DateTimeinterface', $date); |
||
| 36 | $this->assertEquals($date->format('Y'), '10000'); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |