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