Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed exclude/include groups for phpunit 6. #818

Merged
merged 4 commits into from
Dec 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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