1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-31 10:41:50 +02:00

Merge tag '3.1.5' into develop

version 3.1.5
This commit is contained in:
Ne-Lexa
2018-04-25 12:44:40 +03:00
3 changed files with 54 additions and 50 deletions

View File

@@ -7,6 +7,7 @@ use PhpZip\Model\ZipInfo;
use PhpZip\Util\CryptoUtil;
use PhpZip\Util\FilesUtil;
use Psr\Http\Message\ResponseInterface;
use Zend\Diactoros\Response;
/**
* ZipFile test
@@ -1786,9 +1787,10 @@ class ZipFileTest extends ZipTestCase
$zipFile[$i] = $i;
}
$filename = 'file.jar';
$response = $this->getMock(ResponseInterface::class);
$response = $zipFile->outputAsResponse($response, $filename);
$response = $zipFile->outputAsResponse(new Response(), $filename);
$this->assertInstanceOf(ResponseInterface::class, $response);
$this->assertEquals('application/java-archive', $response->getHeaderLine('content-type'));
$this->assertEquals('attachment; filename="file.jar"', $response->getHeaderLine('content-disposition'));
}
public function testCompressionLevel()