private function check($options, $width, $height, $size, $type)
{
$this->client->getObject($this->bucketName, $this->object, $options);
$array = getimagesize($this->download_file);
$this->assertEquals($width, $array[0]);
$this->assertEquals($height, $array[1]);
$this->assertEquals($type === 'jpg' ? 2 : 3, $array[2]);
//2 <=> jpg
$this->assertEquals($size, ceil(filesize($this->download_file)));
}