This commit is contained in:
Luke Downing
2023-02-10 11:12:59 +00:00
committed by Nuno Maduro
parent aff11486b2
commit 2561d47bb5
6 changed files with 88 additions and 18 deletions

View File

@ -112,6 +112,20 @@ final class TestRepository
$this->testCaseMethodFilters[] = $filter;
}
/**
* @param class-string<TestCaseMethodFilter> $filter
*/
public function hasTestCaseMethodFilter(string $filter): bool
{
foreach ($this->testCaseMethodFilters as $testCaseMethodFilter) {
if ($testCaseMethodFilter instanceof $filter) {
return true;
}
}
return false;
}
/**
* Gets the test case factory from the given filename.
*/