mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 06:13:35 +02:00
fix: snapshot key on retry / repeat
This commit is contained in:
@@ -239,3 +239,14 @@ test('intercept can add new parameters to the expectation', function (): void {
|
||||
|
||||
expect('Foo')->toBe('foo', $ignoreCase);
|
||||
});
|
||||
|
||||
test('named arguments reach the pipes of an expectation', function () use ($state): void {
|
||||
$char = new Char('A');
|
||||
|
||||
$state->reset();
|
||||
|
||||
expect($char)->toBe(expected: new Char('A'))
|
||||
->and($state)
|
||||
->runCount->toHaveKey('char', 1)
|
||||
->appliedCount->toHaveKey('char', 1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user