Definition at line 25 of file NullTransformationTest.php.
◆ NullTestDataProvider()
static NullTransformationTest::NullTestDataProvider |
( |
| ) |
|
|
static |
Definition at line 34 of file NullTransformationTest.php.
References null.
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]
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ setUp()
NullTransformationTest::setUp |
( |
| ) |
|
|
protected |
◆ testNullTransformation()
NullTransformationTest::testNullTransformation |
( |
|
$value, |
|
|
bool |
$valid |
|
) |
| |
NullTestDataProvider
- Parameters
-
- Exceptions
-
Definition at line 57 of file NullTransformationTest.php.
60 $this->expectException(ConstraintViolationException::class);
62 $transformed = $this->transformation->transform($value);
63 $this->assertNull($transformed);
◆ $transformation
The documentation for this class was generated from the following file: