Skip to content

Commit

Permalink
Merge remote branch 'cryptocompress/patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
edorian committed Jul 27, 2012
2 parents f302d73 + cbc9fd7 commit 2035c96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PHPUnit/TextUI/TestRunner.php
Expand Up @@ -593,6 +593,11 @@ protected function handleConfiguration(array &$arguments)
$arguments['mapTestClassNameToCoveredClassName'] = $phpunitConfiguration['mapTestClassNameToCoveredClassName'];
}

$groupCliArgs = array();
if (!empty($arguments['groups'])) {
$groupCliArgs = $arguments['groups'];
}

$groupConfiguration = $arguments['configuration']->getGroupConfiguration();

if (!empty($groupConfiguration['include']) &&
Expand All @@ -602,7 +607,7 @@ protected function handleConfiguration(array &$arguments)

if (!empty($groupConfiguration['exclude']) &&
!isset($arguments['excludeGroups'])) {
$arguments['excludeGroups'] = $groupConfiguration['exclude'];
$arguments['excludeGroups'] = array_diff($groupConfiguration['exclude'], $groupCliArgs);
}

foreach ($arguments['configuration']->getListenerConfiguration() as $listener) {
Expand Down

0 comments on commit 2035c96

Please sign in to comment.