Skip to content

Commit 2c6d807

Browse files
committed
fix: make data provider methods static
1 parent d282e05 commit 2c6d807

11 files changed

+17
-17
lines changed

tests/Driver/BlueimpHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testDriverInstance()
4242
$this->assertInstanceOf(BlueimpHandler::class, $manager->driver());
4343
}
4444

45-
public function notAllowedRequestMethods()
45+
public static function notAllowedRequestMethods()
4646
{
4747
return [
4848
'DELETE' => [Request::METHOD_DELETE],

tests/Driver/DropzoneHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testDriverInstance()
4242
$this->assertInstanceOf(DropzoneHandler::class, $manager->driver());
4343
}
4444

45-
public function notAllowedRequestMethods()
45+
public static function notAllowedRequestMethods()
4646
{
4747
return [
4848
'HEAD' => [Request::METHOD_HEAD],
@@ -129,7 +129,7 @@ public function testUploadMonolithWithCallback()
129129
});
130130
}
131131

132-
public function excludedPostParameterProvider()
132+
public static function excludedPostParameterProvider()
133133
{
134134
return [
135135
'dzuuid' => ['dzuuid'],

tests/Driver/FlowJsHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testDriverInstance()
4444
$this->assertInstanceOf(FlowJsHandler::class, $manager->driver());
4545
}
4646

47-
public function notAllowedRequestMethods()
47+
public static function notAllowedRequestMethods()
4848
{
4949
return [
5050
'HEAD' => [Request::METHOD_HEAD],
@@ -130,7 +130,7 @@ public function testUploadWhenFileParameterIsInvalid()
130130
$this->handler->handle($request);
131131
}
132132

133-
public function excludedPostParameterProvider()
133+
public static function excludedPostParameterProvider()
134134
{
135135
return [
136136
'flowChunkNumber' => ['flowChunkNumber'],

tests/Driver/MonolithHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testDriverInstance()
4040
$this->assertInstanceOf(MonolithHandler::class, $manager->driver());
4141
}
4242

43-
public function notAllowedRequestMethods()
43+
public static function notAllowedRequestMethods()
4444
{
4545
return [
4646
'HEAD' => [Request::METHOD_HEAD],

tests/Driver/NgFileHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDriverInstance()
4343
$this->assertInstanceOf(NgFileHandler::class, $manager->driver());
4444
}
4545

46-
public function notAllowedRequestMethods()
46+
public static function notAllowedRequestMethods()
4747
{
4848
return [
4949
'HEAD' => [Request::METHOD_HEAD],
@@ -155,7 +155,7 @@ public function testUploadMonolithWithCallback()
155155
});
156156
}
157157

158-
public function excludedPostParameterProvider()
158+
public static function excludedPostParameterProvider()
159159
{
160160
return [
161161
'_chunkNumber' => ['_chunkNumber'],

tests/Driver/PluploadHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDriverInstance()
4343
$this->assertInstanceOf(PluploadHandler::class, $manager->driver());
4444
}
4545

46-
public function notAllowedRequestMethods()
46+
public static function notAllowedRequestMethods()
4747
{
4848
return [
4949
'GET' => [Request::METHOD_GET],
@@ -92,7 +92,7 @@ public function testUploadWhenFileParameterIsInvalid()
9292
$this->handler->handle($request);
9393
}
9494

95-
public function excludedPostParameterProvider()
95+
public static function excludedPostParameterProvider()
9696
{
9797
return [
9898
'name' => ['name'],

tests/Driver/ResumableJsHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testDriverInstance()
4444
$this->assertInstanceOf(ResumableJsHandler::class, $manager->driver());
4545
}
4646

47-
public function notAllowedRequestMethods()
47+
public static function notAllowedRequestMethods()
4848
{
4949
return [
5050
'HEAD' => [Request::METHOD_HEAD],
@@ -132,7 +132,7 @@ public function testUploadWhenFileParameterIsInvalid()
132132
$this->handler->handle($request);
133133
}
134134

135-
public function excludedPostParameterProvider()
135+
public static function excludedPostParameterProvider()
136136
{
137137
return [
138138
'resumableChunkNumber' => ['resumableChunkNumber'],

tests/Driver/SimpleUploaderJsHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testDriverInstance()
4444
$this->assertInstanceOf(SimpleUploaderJsHandler::class, $manager->driver());
4545
}
4646

47-
public function notAllowedRequestMethods()
47+
public static function notAllowedRequestMethods()
4848
{
4949
return [
5050
'HEAD' => [Request::METHOD_HEAD],
@@ -130,7 +130,7 @@ public function testUploadWhenFileParameterIsInvalid()
130130
$this->handler->handle($request);
131131
}
132132

133-
public function excludedPostParameterProvider()
133+
public static function excludedPostParameterProvider()
134134
{
135135
return [
136136
'chunkNumber' => ['chunkNumber'],

tests/Range/ContentRangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class ContentRangeTest extends TestCase
1313
{
14-
public function invalidArgumentProvider()
14+
public static function invalidArgumentProvider()
1515
{
1616
return [
1717
'Null' => [null, 'Content Range header is missing or invalid'],

tests/Range/DropzoneRangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class DropzoneRangeTest extends TestCase
1212
{
13-
public function invalidArgumentProvider()
13+
public static function invalidArgumentProvider()
1414
{
1515
return [
1616
'Number of chunks size equal to zero' => [4, 0, 20, 190, '`numberOfChunks` must be greater than zero'],

tests/Range/ResumableJsRangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ResumableJsRangeTest extends TestCase
1212
{
13-
public function invalidArgumentProvider()
13+
public static function invalidArgumentProvider()
1414
{
1515
return [
1616
'Number of chunks size equal to zero' => [5, 0, 20, 190, '`numberOfChunks` must be greater than zero'],

0 commit comments

Comments
 (0)