mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
8 lines
258 B
PHP
8 lines
258 B
PHP
<?php
|
|
|
|
test('isAssociativeArray', function () {
|
|
expect(isAssociativeArray([1, 2, 3]))->toBeFalse();
|
|
expect(isAssociativeArray(collect([1, 2, 3])))->toBeFalse();
|
|
expect(isAssociativeArray(collect(['a' => 1, 'b' => 2, 'c' => 3])))->toBeTrue();
|
|
});
|