This commit is contained in:
azjezz 2020-07-06 18:46:58 +01:00
parent 695cb4947c
commit 2deb40be67
2 changed files with 2 additions and 12 deletions

View File

@ -56,14 +56,4 @@ class CountValuesTest extends TestCase
], ],
]; ];
} }
public function testCountThrowsForNonArrayKeyValues(): void
{
$this->expectException(Exception\InvariantViolationException::class);
$this->expectExceptionMessage('Expected all values to be of type array-key, value of type (object) provided.');
Arr\count_values([
new Collection\Map([]),
]);
}
} }