예제 #1
0
파일: Request.php 프로젝트: OpenBX/obx.core
 public function testParseHeader()
 {
     $Request = new Request(self::$_urlJSON . '&test=testSaveContentToFile&download=Y');
     $Request->send();
     $arHeader = $Request->getHeader();
     $this->assertTrue(is_array($arHeader));
     $this->assertArrayHasKey('CHARSET', $arHeader);
     $this->assertArrayHasKey('COOKIES', $arHeader);
     $this->assertEquals('UTF-8', $Request->getCharset());
     $this->assertEquals('application/json', $Request->getContentType());
 }