refactor: Apply PHP7.3 sets
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
bfaddda421
Коммит
3a2cefa509
|
@ -22,5 +22,5 @@ return RectorConfig::configure()
|
|||
phpunit: true,
|
||||
)
|
||||
->withPhpSets(
|
||||
php71: true,
|
||||
php73: true,
|
||||
);
|
||||
|
|
|
@ -14,11 +14,8 @@ use OCA\Mail\Http\AttachmentDownloadResponse;
|
|||
class AttachmentDownloadResponseTest extends TestCase {
|
||||
/**
|
||||
* @dataProvider providesResponseData
|
||||
* @param $content
|
||||
* @param $filename
|
||||
* @param $contentType
|
||||
*/
|
||||
public function testIt($content, $filename, $contentType) {
|
||||
public function testIt(string $content, string $filename, string $contentType) {
|
||||
$resp = new AttachmentDownloadResponse($content, $filename, $contentType);
|
||||
$headers = $resp->getHeaders();
|
||||
$this->assertEquals($content, $resp->render());
|
||||
|
|
|
@ -25,7 +25,7 @@ class ProxyDownloadResponseTest extends TestCase {
|
|||
$this->assertArrayHasKey('Content-Type', $headers);
|
||||
$this->assertEquals($contentType, $headers['Content-Type']);
|
||||
$this->assertArrayHasKey('Content-Disposition', $headers);
|
||||
$pos = strpos($headers['Content-Disposition'], $filename);
|
||||
$pos = strpos($headers['Content-Disposition'], (string)$filename);
|
||||
$this->assertTrue($pos > 0);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче