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()); }
public function testAddFilter() { $header = new Smtpapi\Header(); $header->addFilter('footer', 'text/html', '<strong>boo</strong>'); $this->assertEquals($this->t['add_filter'], $header->jsonString()); }