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()); }