19 declare(strict_types=1);
29 protected function setUp(): void
37 'empty string' => [
'',
true],
38 'space' => [
' ',
true],
39 'spaces' => [
' ',
true],
40 'null' => [
null,
true],
41 'string' => [
'str',
false],
43 'negative int' => [-1,
false],
45 'array' => [[],
false],
46 'bool (false)' => [
false,
false],
47 'bool (true)' => [
true,
false]
60 $this->expectException(ConstraintViolationException::class);
62 $transformed = $this->transformation->transform($value);
63 $this->assertNull($transformed);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null