Skip to content

Commit 046dd7e

Browse files
committed
[TASK] Make the data providers static (#443)
Newer versions of PHPUnit require this, and we might as well do this now. Closes #414
1 parent a94b2f7 commit 046dd7e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tests/CSSList/AtRuleBlockListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function implementsCommentable()
4646
/**
4747
* @return array<string, array<int, string>>
4848
*/
49-
public function mediaRuleDataProvider()
49+
public static function mediaRuleDataProvider()
5050
{
5151
return [
5252
'without spaces around arguments' => ['@media(min-width: 768px){.class{color:red}}'],

tests/CSSList/DocumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getContentsInitiallyReturnsEmptyArray()
5050
/**
5151
* @return array<string, array<int, array<int, DeclarationBlock>>>
5252
*/
53-
public function contentsDataProvider()
53+
public static function contentsDataProvider()
5454
{
5555
return [
5656
'empty array' => [[]],

tests/RuleSet/DeclarationBlockTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function expandBorderShorthand($sCss, $sExpected)
3333
/**
3434
* @return array<int, array<int, string>>
3535
*/
36-
public function expandBorderShorthandProvider()
36+
public static function expandBorderShorthandProvider()
3737
{
3838
return [
3939
['body{ border: 2px solid #000 }', 'body {border-width: 2px;border-style: solid;border-color: #000;}'],
@@ -66,7 +66,7 @@ public function expandFontShorthand($sCss, $sExpected)
6666
/**
6767
* @return array<int, array<int, string>>
6868
*/
69-
public function expandFontShorthandProvider()
69+
public static function expandFontShorthandProvider()
7070
{
7171
return [
7272
[
@@ -122,7 +122,7 @@ public function expandBackgroundShorthand($sCss, $sExpected)
122122
/**
123123
* @return array<int, array<int, string>>
124124
*/
125-
public function expandBackgroundShorthandProvider()
125+
public static function expandBackgroundShorthandProvider()
126126
{
127127
return [
128128
['body {border: 1px;}', 'body {border: 1px;}'],
@@ -175,7 +175,7 @@ public function expandDimensionsShorthand($sCss, $sExpected)
175175
/**
176176
* @return array<int, array<int, string>>
177177
*/
178-
public function expandDimensionsShorthandProvider()
178+
public static function expandDimensionsShorthandProvider()
179179
{
180180
return [
181181
['body {border: 1px;}', 'body {border: 1px;}'],
@@ -213,7 +213,7 @@ public function createBorderShorthand($sCss, $sExpected)
213213
/**
214214
* @return array<int, array<int, string>>
215215
*/
216-
public function createBorderShorthandProvider()
216+
public static function createBorderShorthandProvider()
217217
{
218218
return [
219219
['body {border-width: 2px;border-style: solid;border-color: #000;}', 'body {border: 2px solid #000;}'],
@@ -244,7 +244,7 @@ public function createFontShorthand($sCss, $sExpected)
244244
/**
245245
* @return array<int, array<int, string>>
246246
*/
247-
public function createFontShorthandProvider()
247+
public static function createFontShorthandProvider()
248248
{
249249
return [
250250
['body {font-size: 12px; font-family: serif}', 'body {font: 12px serif;}'],
@@ -287,7 +287,7 @@ public function createDimensionsShorthand($sCss, $sExpected)
287287
/**
288288
* @return array<int, array<int, string>>
289289
*/
290-
public function createDimensionsShorthandProvider()
290+
public static function createDimensionsShorthandProvider()
291291
{
292292
return [
293293
['body {border: 1px;}', 'body {border: 1px;}'],
@@ -325,7 +325,7 @@ public function createBackgroundShorthand($sCss, $sExpected)
325325
/**
326326
* @return array<int, array<int, string>>
327327
*/
328-
public function createBackgroundShorthandProvider()
328+
public static function createBackgroundShorthandProvider()
329329
{
330330
return [
331331
['body {border: 1px;}', 'body {border: 1px;}'],

0 commit comments

Comments
 (0)