|
|
@@ -744,7 +744,7 @@ class ZipEntryTest extends TestCase
|
|
|
{
|
|
|
$this->expectException(InvalidArgumentException::class);
|
|
|
$this->expectExceptionMessage(
|
|
|
- sprintf(
|
|
|
+ \sprintf(
|
|
|
'Invalid compression level. Minimum level %s. Maximum level %s',
|
|
|
ZipCompressionLevel::LEVEL_MIN,
|
|
|
ZipCompressionLevel::LEVEL_MAX
|
|
|
@@ -827,8 +827,6 @@ class ZipEntryTest extends TestCase
|
|
|
* @dataProvider provideExternalAttributes
|
|
|
*
|
|
|
* @noinspection PhpTooManyParametersInspection
|
|
|
- *
|
|
|
- * @param ?int $externalAttr
|
|
|
*/
|
|
|
public function testExternalAttributes(
|
|
|
string $entryName,
|
|
|
@@ -1103,9 +1101,6 @@ class ZipEntryTest extends TestCase
|
|
|
|
|
|
/**
|
|
|
* @dataProvider provideEncryption
|
|
|
- *
|
|
|
- * @param ?string $password
|
|
|
- * @param ?int $encryptionMethod
|
|
|
*/
|
|
|
public function testEncryption(?string $password, ?int $encryptionMethod, bool $encrypted, int $expectedEncryptionMethod): void
|
|
|
{
|
|
|
@@ -1145,8 +1140,6 @@ class ZipEntryTest extends TestCase
|
|
|
|
|
|
/**
|
|
|
* @dataProvider provideEncryptionMethod
|
|
|
- *
|
|
|
- * @param ?int $encryptionMethod
|
|
|
*/
|
|
|
public function testEncryptionMethod(
|
|
|
?int $encryptionMethod,
|
|
|
@@ -1209,7 +1202,7 @@ class ZipEntryTest extends TestCase
|
|
|
public function testInvalidEncryptionMethod(int $encryptionMethod): void
|
|
|
{
|
|
|
$this->expectException(InvalidArgumentException::class);
|
|
|
- $this->expectExceptionMessage(sprintf('Encryption method %d is not supported.', $encryptionMethod));
|
|
|
+ $this->expectExceptionMessage(\sprintf('Encryption method %d is not supported.', $encryptionMethod));
|
|
|
|
|
|
$zipEntry = new ZipEntry('entry');
|
|
|
$zipEntry->setEncryptionMethod($encryptionMethod);
|
|
|
@@ -1326,9 +1319,6 @@ class ZipEntryTest extends TestCase
|
|
|
|
|
|
/**
|
|
|
* @dataProvider provideExtraTime
|
|
|
- *
|
|
|
- * @param ?\DateTimeInterface $atime
|
|
|
- * @param ?\DateTimeInterface $ctime
|
|
|
*/
|
|
|
public function testMTimeATimeCTime(ExtraFieldsCollection $extraFieldsCollection, \DateTimeInterface $mtime, ?\DateTimeInterface $atime, ?\DateTimeInterface $ctime): void
|
|
|
{
|