public function testGetDate() { $email = new Email(); $date = new \DateTime('now', new \DateTimeZone('UTC')); $email->setSentAt($date); $this->assertSame($date, $this->provider->getDate($email)); }