Skip to content

Commit

Permalink
Merge pull request #242 from Tiskiel/fix/interchanged-value
Browse files Browse the repository at this point in the history
Using the good value instead of the key name
  • Loading branch information
nunomaduro authored Nov 10, 2023
2 parents 262482a + e433483 commit 2ad07dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expectations.md
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ The `sequence()` modifier can also be used with associative iterables. Each clos

```php
expect(['hello' => 'world', 'foo' => 'bar', 'john' => 'doe'])->sequence(
fn ($value, $key) => $value->toEqual('hello'),
fn ($value, $key) => $value->toEqual('world'),
fn ($value, $key) => $key->toEqual('foo'),
fn ($value, $key) => $value->toBeString(),
);
Expand Down

0 comments on commit 2ad07dd

Please sign in to comment.