Permalink
Browse files

fixed issue: #322

and described part of: https://github.com/sebastianbergmann/phpunit/320

don't know if this fixes #320 completely as i cannot reproduce this behavior with other parameters:
- strict
- verbose
- debug
  • Loading branch information...
1 parent 8aceb87 commit cbc9fd76ee5011a1bdf7eca0be2909d2c8908c97 @cryptocompress cryptocompress committed Jul 16, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 PHPUnit/TextUI/TestRunner.php
@@ -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']) &&
@@ -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) {

0 comments on commit cbc9fd7

Please sign in to comment.