mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: before each globally
This commit is contained in:
@ -62,12 +62,17 @@ final class BeforeEachCall
|
||||
$testCaseProxies = $this->testCaseProxies;
|
||||
|
||||
$beforeEachTestCall = function (TestCall $testCall) use ($describing): void {
|
||||
if ($describing !== $this->describing) {
|
||||
return;
|
||||
}
|
||||
if ($describing !== $testCall->describing) {
|
||||
return;
|
||||
|
||||
if ($this->describing !== null) {
|
||||
if ($describing !== $this->describing) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($describing !== $testCall->describing) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->testCallProxies->chain($testCall);
|
||||
};
|
||||
|
||||
|
||||
@ -197,7 +197,7 @@ final class Coverage
|
||||
};
|
||||
|
||||
$array = [];
|
||||
foreach (array_filter($file->lineCoverageData(), 'is_array') as $line => $tests) {
|
||||
foreach (array_filter($file->lineCoverageData(), is_array(...)) as $line => $tests) {
|
||||
$array = $eachLine($array, $tests, $line);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user