Definition at line 26 of file NullTransformationTest.php.
◆ NullTestDataProvider()
static NullTransformationTest::NullTestDataProvider |
( |
| ) |
|
|
static |
Definition at line 35 of file NullTransformationTest.php.
References null.
38 'empty string' => [
'',
true],
39 'space' => [
' ',
true],
40 'spaces' => [
' ',
true],
41 'null' => [
null,
true],
42 'string' => [
'str',
false],
44 'negative int' => [-1,
false],
46 'array' => [[],
false],
47 'bool (false)' => [
false,
false],
48 'bool (true)' => [
true,
false]
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ setUp()
NullTransformationTest::setUp |
( |
| ) |
|
|
protected |
◆ testNullTransformation()
NullTransformationTest::testNullTransformation |
( |
mixed |
$value, |
|
|
bool |
$valid |
|
) |
| |
Definition at line 53 of file NullTransformationTest.php.
56 $this->expectException(ConstraintViolationException::class);
58 $transformed = $this->transformation->transform($value);
59 $this->assertNull($transformed);
◆ $transformation
The documentation for this class was generated from the following file: