/**
* @dataProvider provideDataWithInvalidParameterKeys
*/
public function testThrowsExceptionIfParametersKeyIsNotAnArray(array $data, string $expectedExceptionMessage)
{
try {
$this->denormalizer->denormalize($data);
$this->fail('Expected exception to be thrown.');
} catch (\TypeError $exception) {
$this->assertEquals($expectedExceptionMessage, $exception->getMessage());
}
}