Exemplo n.º 1
0
 public function testEncodeAndDecode()
 {
     $e = Response::encodeBody('This is a test.');
     $this->assertEquals('This is a test.', Response::decodeBody($e));
     $e = Response::encodeBody('This is a test.', 'deflate');
     $this->assertEquals('This is a test.', Response::decodeBody($e, 'deflate'));
 }