This commit is contained in:
Fabio Ivona
2022-08-25 09:32:48 +02:00
parent 66f69617f1
commit bedf033655
11 changed files with 29 additions and 2 deletions

View File

@ -40,8 +40,10 @@ 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'); },
);
});