public function testAddCategory() { $header = new Smtpapi\Header(); $header->addCategory('addCategory'); $header->addCategory('addCategory2'); $this->assertEquals($this->t['add_category'], $header->jsonString()); }
public function testAddCategoryUnicodeUnescape() { $header = new Smtpapi\Header(); $header->addCategory('天破活殺'); $header->addCategory('天翔十字鳳'); $options = JSON_UNESCAPED_UNICODE; $this->assertEquals($this->t['add_category_unicode_unescape'], $header->jsonString($options)); }