true, 'camelCase' => [ 'camel' => true, 'camelCase' => [ 'camel' => true, 'camelCase' => true, ], 'list' => [ 'abc', 'def', 'ghi', ], ], ]; test('pass', function () use ($array) { expect($array)->toHaveCamelCaseKeys(); }); test('failures', function () { expect('not-an-array')->toHaveCamelCaseKeys(); })->throws(InvalidExpectationValue::class); test('failures with message', function () use ($array) { expect($array)->not->toHaveCamelCaseKeys('oh no!'); })->throws(ExpectationFailedException::class, 'oh no!'); test('not failures', function () use ($array) { expect($array)->not->toHaveCamelCaseKeys(); })->throws(ExpectationFailedException::class);