This commit is contained in:
Fabio Ivona
2022-08-02 11:01:17 +02:00
parent afedf83f5d
commit 1706e1d2e0
15 changed files with 30 additions and 7 deletions

View File

@ -40,8 +40,14 @@ test('fails if the number of iterable items is greater than the number of expect
test('it works with associative arrays', function () {
expect(['foo' => 'bar', 'baz' => 'boom'])
->sequence(
function ($expectation, $key) { $expectation->toEqual('bar'); $key->toEqual('foo'); },
function ($expectation, $key) { $expectation->toEqual('boom'); $key->toEqual('baz'); },
function ($expectation, $key) {
$expectation->toEqual('bar');
$key->toEqual('foo');
},
function ($expectation, $key) {
$expectation->toEqual('boom');
$key->toEqual('baz');
},
);
});