| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 27 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 34 | 	public function testParseDate_Year_Month_Day_Time() { | ||
| 35 | |||
| 36 | $timeValue = $this->createMock( \SMWTimeValue::class ); | ||
| 37 | |||
| 38 | $timeValue->expects( $this->any() ) | ||
| 39 | ->method( 'getYear' ) | ||
| 40 | ->will( $this->returnValue( 2000 ) ); | ||
| 41 | |||
| 42 | $timeValue->expects( $this->any() ) | ||
| 43 | ->method( 'getMonth' ) | ||
| 44 | ->will( $this->returnValue( 12 ) ); | ||
| 45 | |||
| 46 | $timeValue->expects( $this->any() ) | ||
| 47 | ->method( 'getDay' ) | ||
| 48 | ->will( $this->returnValue( 12 ) ); | ||
| 49 | |||
| 50 | $timeValue->expects( $this->any() ) | ||
| 51 | ->method( 'getTimeString' ) | ||
| 52 | ->will( $this->returnValue( '12:01:01' ) ); | ||
| 53 | |||
| 54 | $instance = new DateParser(); | ||
| 55 | |||
| 56 | $this->assertSame( | ||
| 57 | '20001212T120101', | ||
| 58 | $instance->parseDate( $timeValue, true ) | ||
| 59 | ); | ||
| 60 | } | ||
| 61 | |||
| 63 |