Skip to content

Commit 1911017

Browse files
authored
[TASK] Reorder methods in SelectorTest (#1472)
Move a data provider in preparation for #1470.
1 parent bea9012 commit 1911017

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

tests/Unit/Property/SelectorTest.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,26 @@ public static function provideSelectorsAndSpecificities(): array
6666
];
6767
}
6868

69+
/**
70+
* @return array<string, array{0: string}>
71+
*/
72+
public static function provideInvalidSelectors(): array
73+
{
74+
return [
75+
// This is currently broken.
76+
// 'empty string' => [''],
77+
'percent sign' => ['%'],
78+
// This is currently broken.
79+
// 'hash only' => ['#'],
80+
// This is currently broken.
81+
// 'dot only' => ['.'],
82+
'slash' => ['/'],
83+
'less-than sign' => ['<'],
84+
// This is currently broken.
85+
// 'whitespace only' => [" \t\n\r"],
86+
];
87+
}
88+
6989
/**
7090
* @test
7191
*
@@ -112,26 +132,6 @@ public function isValidForValidSelectorReturnsTrue(string $selector): void
112132
self::assertTrue(Selector::isValid($selector));
113133
}
114134

115-
/**
116-
* @return array<string, array{0: string}>
117-
*/
118-
public static function provideInvalidSelectors(): array
119-
{
120-
return [
121-
// This is currently broken.
122-
// 'empty string' => [''],
123-
'percent sign' => ['%'],
124-
// This is currently broken.
125-
// 'hash only' => ['#'],
126-
// This is currently broken.
127-
// 'dot only' => ['.'],
128-
'slash' => ['/'],
129-
'less-than sign' => ['<'],
130-
// This is currently broken.
131-
// 'whitespace only' => [" \t\n\r"],
132-
];
133-
}
134-
135135
/**
136136
* @test
137137
*

0 commit comments

Comments
 (0)