19 declare(strict_types=1);
31 protected function setUp(): void
43 $transformedValue = $this->transformation->transform($originVal);
44 $this->assertIsInt($transformedValue);
45 $this->assertEquals($expectedVal, $transformedValue);
54 $this->expectException(ConstraintViolationException::class);
55 $this->transformation->transform($failingValue);
61 'pos_bool' => [
true, 1],
62 'neg_bool' => [
false, 0],
63 'float_val' => [20.5, 21],
64 'float_val_round_up' => [0.51, 1],
65 'float_val_round_down' => [0.49, 0],
66 'string_zero' => [
'0', 0],
67 'string_val' => [
'4947642', 4947642],
68 'neg_string_val' => [
'-4947642', -4947642],
69 'string_val_trimming' => [
' 4947642 ', 4947642],
70 'neg_string_val_trimming' => [
' -4947642 ', -4947642],
77 'bigger_than_int_max' => [
"9223372036854775808"],
78 'smaller_than_int_min' => [
"-9223372036854775809"],
79 'weird_notation' => [
"01"],
81 'mill_delim' => [
"1'000"],
84 'written_false' => [
'false'],
85 'written_null' => [
'null'],
87 'written_NaN' => [
'NaN'],
90 'written_INF' => [
'INF'],
91 'written_neg_INF' => [
'-INF'],
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null