fix: snapshot key on retry / repeat

This commit is contained in:
nuno maduro
2026-08-24 09:31:34 +01:00
parent 39cbdcd52b
commit b8c2265d66
30 changed files with 479 additions and 145 deletions
+11
View File
@@ -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);
});