feat(describe): more refactors

This commit is contained in:
Nuno Maduro
2023-05-26 20:04:50 +01:00
parent 551fa01415
commit 0ae0887665
4 changed files with 10 additions and 10 deletions

View File

@ -68,7 +68,7 @@ final class BeforeEachCall
$this->testCallProxies->chain($testCall);
};
$beforeEachTestCase = ChainableClosure::when(
$beforeEachTestCase = ChainableClosure::boundWhen(
fn (): bool => is_null($describing) || $this->__describing === $describing, // @phpstan-ignore-line
ChainableClosure::bound(fn () => $testCaseProxies->chain($this), $this->closure)->bindTo($this, self::class), // @phpstan-ignore-line
)->bindTo($this, self::class);