public function testToWebFormatWithDate() { $email = new Email(); date_default_timezone_set('America/Los_Angeles'); $date = date('r'); $email->setDate($date); $json = $email->toWebFormat(); $this->assertEquals($json['date'], $date); }