Esempio n. 1
0
 public function testAddCategory()
 {
     $header = new Smtpapi\Header();
     $header->addCategory('addCategory');
     $header->addCategory('addCategory2');
     $this->assertEquals($this->t['add_category'], $header->jsonString());
 }
Esempio n. 2
0
 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));
 }