File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,11 @@ protected function handleConfiguration(array &$arguments)
593
593
$ arguments ['mapTestClassNameToCoveredClassName ' ] = $ phpunitConfiguration ['mapTestClassNameToCoveredClassName ' ];
594
594
}
595
595
596
+ $ groupCliArgs = array ();
597
+ if (!empty ($ arguments ['groups ' ])) {
598
+ $ groupCliArgs = $ arguments ['groups ' ];
599
+ }
600
+
596
601
$ groupConfiguration = $ arguments ['configuration ' ]->getGroupConfiguration ();
597
602
598
603
if (!empty ($ groupConfiguration ['include ' ]) &&
@@ -602,7 +607,7 @@ protected function handleConfiguration(array &$arguments)
602
607
603
608
if (!empty ($ groupConfiguration ['exclude ' ]) &&
604
609
!isset ($ arguments ['excludeGroups ' ])) {
605
- $ arguments ['excludeGroups ' ] = $ groupConfiguration ['exclude ' ];
610
+ $ arguments ['excludeGroups ' ] = array_diff ( $ groupConfiguration ['exclude ' ], $ groupCliArgs ) ;
606
611
}
607
612
608
613
foreach ($ arguments ['configuration ' ]->getListenerConfiguration () as $ listener ) {
You can’t perform that action at this time.
0 commit comments