예제 #1
0
 public function testToWebFormatWithFilters()
 {
     $email = new Email();
     $email->addFilter("footer", "text/plain", "Here is a plain text footer");
     $json = $email->toWebFormat();
     $xsmtpapi = json_decode($json['x-smtpapi'], TRUE);
     $this->assertEquals('Here is a plain text footer', $xsmtpapi['filters']['footer']['settings']['text/plain']);
 }