19 declare(strict_types=1);
39 $transformedValue = $transformation->transform($originVal);
40 $this->assertIsArray($transformedValue);
41 $this->assertEquals($expectedVal, $transformedValue);
50 $this->expectException(ConstraintViolationException::class);
52 $transformation->transform($failingVal);
58 'from_is_a_string' => [
'hello'],
59 'from_is_an_int' => [1],
60 'from_is_an_float' => [3.141],
61 'from_is_null' => [
null],
62 'from_is_a_bool' => [
true],
63 'from_is_a_resource' => [fopen(
'php://memory',
'rb')],
64 'from_is_an_object' => [
new stdClass()],
71 'first_arr' => [[
'hello' =>
'world'], [
'hello' =>
'world'] ],
72 'second_arr' => [[
'hi' =>
'earth',
'goodbye' =>
'world'], [
'hi' =>
'earth',
'goodbye' =>
'world']],
73 'third_arr' => [[22 =>
"earth", 33 =>
"world"], [22 =>
"earth", 33 =>
"world"]],
74 'empty_array' => [[], []]
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null