Skip to content

Commit b2fe5db

Browse files
committed
Allow newer phpunit versions
1 parent be03546 commit b2fe5db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"ondrej-vrto/php-filename-sanitize": "^1.4"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^10",
22+
"phpunit/phpunit": "^10 || ^11 || ^12",
2323
"wdes/coding-standard": "^3.0",
2424
"nyholm/psr7": "^1.4"
2525
},

test/src/ResumableTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public static function fileNameProvider(): array
235235
/**
236236
* @dataProvider fileNameProvider
237237
*/
238+
#[\PHPUnit\Framework\Attributes\DataProvider('fileNameProvider')]
238239
public function testResumableSanitizeFileName(string $filename, string $filenameSanitized): void
239240
{
240241
$resumableParams = [
@@ -290,9 +291,9 @@ public static function isFileUploadCompleteProvider(): array
290291
}
291292

292293
/**
293-
*
294294
* @dataProvider isFileUploadCompleteProvider
295295
*/
296+
#[\PHPUnit\Framework\Attributes\DataProvider('isFileUploadCompleteProvider')]
296297
public function testIsFileUploadComplete($filename, $identifier, $numOfChunks, $expected): void
297298
{
298299
$this->resumable->tempFolder = 'test';

0 commit comments

Comments
 (0)