chore: fixes test suite

This commit is contained in:
Nuno Maduro
2024-04-28 12:02:42 +01:00
parent a2cb78710d
commit 2070538fd3
7 changed files with 14 additions and 54 deletions

View File

@ -54,7 +54,7 @@ final class AfterEachCall
$proxies = $this->proxies;
$afterEachTestCase = ChainableClosure::boundWhen(
fn (): bool => is_null($describing) || $this->__describing === $describing, // @phpstan-ignore-line
fn (): bool => is_null($describing) || $this->__describing === $describing,
ChainableClosure::bound(fn () => $proxies->chain($this), $this->closure)->bindTo($this, self::class), // @phpstan-ignore-line
)->bindTo($this, self::class);

View File

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

View File

@ -10,8 +10,7 @@ namespace Pest\PendingCalls\Concerns;
trait Describable
{
/**
* Note: this is property is not used; however,
* it gets added automatically by rector php.
* Note: this is property is not used; however, it gets added automatically by rector php.
*/
public string $__describing;