コード例 #1
0
ファイル: Header.php プロジェクト: obiorahm/myPersonalWebsite
 public function testAddCategory()
 {
     $header = new Smtpapi\Header();
     $header->addCategory('addCategory');
     $header->addCategory('addCategory2');
     $this->assertEquals($this->t['add_category'], $header->jsonString());
 }
コード例 #2
0
ファイル: Header.php プロジェクト: tave/smtpapi-php
 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));
 }