@@ -395,7 +395,7 @@ public static function provideComponentsAndArrayRepresentation(): array
395395 */
396396 public function setComponentsSetsComponentsProvided (array $ components , array $ expectedRepresenation ): void
397397 {
398- $ subject = new Selector ();
398+ $ subject = new Selector ([] );
399399
400400 $ subject ->setComponents ($ components );
401401
@@ -408,7 +408,7 @@ public function setComponentsSetsComponentsProvided(array $components, array $ex
408408 */
409409 public function getComponentsReturnsEmptyArrayIfNotSet (): void
410410 {
411- $ subject = new Selector ();
411+ $ subject = new Selector ([] );
412412
413413 $ result = $ subject ->getComponents ();
414414
@@ -424,7 +424,7 @@ public function getComponentsReturnsEmptyArrayIfNotSet(): void
424424 */
425425 public function getComponentsReturnsComponentsSet (array $ components ): void
426426 {
427- $ subject = new Selector ();
427+ $ subject = new Selector ([] );
428428 $ subject ->setComponents ($ components );
429429
430430 $ result = $ subject ->getComponents ();
@@ -541,7 +541,7 @@ public function doesNotCleanupSpacesWithinAttributeSelector(): void
541541 */
542542 public function getArrayRepresentationIncludesClassName (): void
543543 {
544- $ subject = new Selector ();
544+ $ subject = new Selector ([] );
545545
546546 $ result = $ subject ->getArrayRepresentation ();
547547
@@ -553,7 +553,7 @@ public function getArrayRepresentationIncludesClassName(): void
553553 */
554554 public function getArrayRepresentationIncludesComponent (): void
555555 {
556- $ subject = ( new Selector ())-> setComponents ([new CompoundSelector ('p.test ' )]);
556+ $ subject = new Selector ([new CompoundSelector ('p.test ' )]);
557557
558558 $ result = $ subject ->getArrayRepresentation ();
559559
0 commit comments