21 $transformedValue = $transformation->transform($originVal);
22 $this->assertIsArray($transformedValue);
23 $this->assertEquals($expectedVal, $transformedValue);
32 $this->expectException(ConstraintViolationException::class);
34 $result = $transformation->transform($failingVal);
40 'key_not_a_string' => [
'hello'],
41 'value_not_a_string' => [
'hello' => 1]
48 'first_arr' => [[
'hello' =>
'world'], [
'hello' =>
'world'] ],
49 'second_arr' => [[
'hi' =>
'earth',
'goodbye' =>
'world'], [
'hi' =>
'earth',
'goodbye' =>
'world']],
50 'empty_array' => [[], []]