Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testParseDate_Year() { |
||
19 | |||
20 | $timeValue = $this->createMock( \SMWTimeValue::class ); |
||
21 | |||
22 | $timeValue->expects( $this->any() ) |
||
23 | ->method( 'getYear' ) |
||
24 | ->will( $this->returnValue( 2000 ) ); |
||
25 | |||
26 | $instance = new DateParser(); |
||
27 | |||
28 | $this->assertSame( |
||
29 | '20000101', |
||
30 | $instance->parseDate( $timeValue, true ) |
||
31 | ); |
||
32 | } |
||
33 | |||
63 |