mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Fixes --dirty integration
This commit is contained in:
committed by
Nuno Maduro
parent
17cda168e1
commit
aff11486b2
@ -125,6 +125,12 @@ final class TestRepository
|
||||
*/
|
||||
public function set(TestCaseMethodFactory $method): void
|
||||
{
|
||||
foreach ($this->testCaseFilters as $filter) {
|
||||
if (!$filter->accept($method->filename)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($this->testCaseMethodFilters as $filter) {
|
||||
if (!$filter->accept($method)) {
|
||||
return;
|
||||
@ -147,17 +153,15 @@ final class TestRepository
|
||||
return;
|
||||
}
|
||||
|
||||
$accepted = array_reduce(
|
||||
$this->testCaseFilters,
|
||||
fn (bool $carry, TestCaseFilter $filter): bool => $carry && $filter->accept($filename),
|
||||
true,
|
||||
);
|
||||
|
||||
if ($accepted) {
|
||||
$this->make($this->testCases[$filename]);
|
||||
foreach ($this->testCaseFilters as $filter) {
|
||||
if (!$filter->accept($filename)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->make($this->testCases[$filename]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes a Test Case using the given factory.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user