19 declare(strict_types=1);
31 #[DataProvider('ArrayToListTransformationDataProvider')] 35 $transformedValue = $transformList->transform($originValue);
36 $this->assertIsArray($transformedValue);
37 $this->assertEquals($expectedValue, $transformedValue);
40 #[DataProvider('ArrayFailureDataProvider')] 43 $this->expectException(UnexpectedValueException::class);
45 $transformList->transform($origValue);
51 'first_arr' => [[
'hello',
'world'], [
'hello',
'world']],
52 'second_arr' => [[
'hello2',
'world2'], [
'hello2',
'world2']],
53 'string_val' => [
'hello world', [
'hello world']],
54 'empty_array' => [[], []]
61 'null_array' => [[
null]],
62 'value_is_no_string' => [[
'hello', 2]]
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null