mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 08:47:22 +01:00
Execute all parent beforeEach and afterEach functions for each test
This commit is contained in:
@ -54,7 +54,7 @@ final class AfterEachCall
|
||||
$proxies = $this->proxies;
|
||||
|
||||
$afterEachTestCase = ChainableClosure::boundWhen(
|
||||
fn (): bool => is_null($describing) || $this->__describing === $describing,
|
||||
fn (): bool => $describing === [] || in_array(end($describing), $this->__describing, true),
|
||||
ChainableClosure::bound(fn () => $proxies->chain($this), $this->closure)->bindTo($this, self::class), // @phpstan-ignore-line
|
||||
)->bindTo($this, self::class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user