29 $transformedValue = $this->transformation->transform($originVal);
30 $this->assertIsInt($transformedValue);
31 $this->assertEquals($expectedVal, $transformedValue);
40 $this->expectException(ConstraintViolationException::class);
41 $this->transformation->transform($failingValue);
47 'pos_bool' => [
true, (int) 1],
48 'neg_bool' => [
false, (
int) 0],
49 'float_val' => [20.5, 21],
50 'float_val_round_up' => [0.51, 1],
51 'float_val_round_down' => [0.49, 0],
52 'string_zero' => [
'0', 0],
53 'string_val' => [
'4947642', 4947642],
54 'neg_string_val' => [
'-4947642', -4947642],
55 'string_val_trimming' => [
' 4947642 ', 4947642],
56 'neg_string_val_trimming' => [
' -4947642 ', -4947642],
63 'bigger_than_int_max' => [
"9223372036854775808"],
64 'smaller_than_int_min' => [
"-9223372036854775809"],
65 'weird_notation' => [
"01"],
67 'mill_delim' => [
"1'000"],
70 'written_false' => [
'false'],
71 'written_null' => [
'null'],
73 'written_NaN' => [
'NaN'],
76 'written_INF' => [
'INF'],
77 'written_neg_INF' => [
'-INF'],