/home/techb158/ileadtechnology.com/SSM/vendor/rmccue/requests/tests
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/rmccue/requests/tests/Encoding.php (2384B)
$set) {
$real_set = self::mapData($key, $set);
$data = array_merge($data, $real_set);
}
return $data;
}
/**
* @dataProvider encodedData
*/
public function testDecompress($original, $encoded) {
$decoded = Requests::decompress($encoded);
$this->assertEquals($original, $decoded);
}
/**
* @dataProvider encodedData
*/
public function testCompatibleInflate($original, $encoded) {
$decoded = Requests::compatible_gzinflate($encoded);
$this->assertEquals($original, $decoded);
}
protected function bin2hex($field) {
$field = bin2hex($field);
$field = chunk_split($field,2,"\\x");
$field = "\\x" . substr($field,0,-2);
return $field;
}
}