Skip to content

Commit

Permalink
Fixed exclude/include groups for phpunit 6. (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored and mrook committed Dec 28, 2017
1 parent 262b1a2 commit 18681b2
Show file tree
Hide file tree
Showing 6 changed files with 348 additions and 158 deletions.
4 changes: 2 additions & 2 deletions classes/phing/tasks/ext/phpunit/PHPUnitTestRunner6.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,14 @@ private function injectFilters(PHPUnit\Framework\TestSuite $suite)

if (!empty($this->excludeGroups)) {
$filterFactory->addFilter(
new ReflectionClass('PHPUnit\Runner\Filter\Group\Exclude'),
new ReflectionClass(\PHPUnit\Runner\Filter\ExcludeGroupFilterIterator::class),
$this->excludeGroups
);
}

if (!empty($this->groups)) {
$filterFactory->addFilter(
new ReflectionClass('PHPUnit\Runner\Filter\Group\Include'),
new ReflectionClass(\PHPUnit\Runner\Filter\IncludeGroupFilterIterator::class),
$this->groups
);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"phpdocumentor/phpdocumentor": "2.x",
"phploc/phploc": "^4.0",
"phpmd/phpmd": "~2.2",
"phpunit/phpunit": ">=5.4",
"phpunit/phpunit": "^6.5",
"siad007/versioncontrol_hg": "^1.0",
"sebastian/phpcpd": "^2.0",
"sebastian/git": "^2.1",
Expand Down
Loading

0 comments on commit 18681b2

Please sign in to comment.