getRequestDate() public method

Retrieves the date- and timestamp the VIES service response was created
public getRequestDate ( ) : DateTime
return DateTime
Beispiel #1
1
 public function testDefaultDateIsNow()
 {
     $vatResponse = new CheckVatResponse();
     $this->assertInstanceOf('\\DateTime', $vatResponse->getRequestDate());
     $this->assertSame(date('Y-m-dP'), $vatResponse->getRequestDate()->format('Y-m-dP'));
 }