예제 #1
0
파일: Header.php 프로젝트: tave/smtpapi-php
 public function testGetFilters()
 {
     $header = new Smtpapi\Header();
     $header->addFilter('footer', 'text/html', '<strong>boo</strong>');
     $filter = array('footer' => array('settings' => array('text/html' => '<strong>boo</strong>')));
     $this->assertEquals($filter, $header->getFilters());
 }
예제 #2
0
 public function testAddFilter()
 {
     $header = new Smtpapi\Header();
     $header->addFilter('footer', 'text/html', '<strong>boo</strong>');
     $this->assertEquals($this->t['add_filter'], $header->jsonString());
 }