mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user