Пример #1
0
 public function testClearHeadersCharset()
 {
     $header = "HTTP/1.1 200 OK" . "\r\n" . "Content-Type: text/html; charset=Shift-JIS";
     $response = Response::fromString("{$header}\r\n\r\nABC");
     $c = Filter::clearHeadersCharset($response->getHeaders()->toArray());
     $this->assertEquals('text/html', $c['Content-Type']);
 }