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