@@ -161,8 +161,11 @@ public function parseHandlesEvenNumberOfBackslashesBeforeQuote(): void
161161 public static function provideInvalidSelectors (): array
162162 {
163163 return [
164- // This is currently broken.
165- // 'empty string' => [''],
164+ 'empty string ' => ['' ],
165+ 'space ' => [' ' ],
166+ 'tab ' => ["\t" ],
167+ 'line feed ' => ["\n" ],
168+ 'carriage return ' => ["\r" ],
166169 'percent sign ' => ['% ' ],
167170 // This is currently broken.
168171 // 'hash only' => ['#'],
@@ -176,16 +179,11 @@ public static function provideInvalidSelectors(): array
176179 }
177180
178181 /**
179- * @return array<non-empty-string, array{0: string}>
182+ * @return array<non-empty-string, array{0: non-empty- string}>
180183 */
181184 public static function provideInvalidSelectorsForParse (): array
182185 {
183186 return [
184- 'empty string ' => ['' ],
185- 'space ' => [' ' ],
186- 'tab ' => ["\t" ],
187- 'line feed ' => ["\n" ],
188- 'carriage return ' => ["\r" ],
189187 'a `:not` missing the closing brace ' => [':not(a ' ],
190188 'a `:not` missing the opening brace ' => [':not a) ' ],
191189 'attribute value missing closing single quote ' => ['a[href= \'#top] ' ],
@@ -315,16 +313,6 @@ public function parseExtractsTwoCommentsFromSelector(): void
315313 self ::assertSame ('comment2 ' , $ result [1 ]->getComment ());
316314 }
317315
318- /**
319- * @test
320- */
321- public function canConstructObjectWithEmptyState (): void
322- {
323- $ subject = new Selector ('' );
324-
325- self ::assertSame ('' , $ subject ->getSelector ());
326- }
327-
328316 /**
329317 * @test
330318 *
0 commit comments