mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
chore: fixes test suite
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, // @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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user