public function testToWebFormatWithSetSendAt() { $email = new Email(); $email->setSendAt(1409348513); $json = $email->toWebFormat(); $xsmtpapi = json_decode($json["x-smtpapi"]); $this->assertEquals(1409348513, $xsmtpapi->send_at); }