Definition at line 31 of file DValueTest.php.
◆ casesProvider()
static ILIAS\Data\Description\DDValueTest::casesProvider |
( |
| ) |
|
|
static |
Definition at line 55 of file DValueTest.php.
References ILIAS\Data\Description\NULL, and null.
58 [ValueType::INT, 42,
true],
59 [ValueType::INT,
"foo",
false],
60 [ValueType::FLOAT, 2.3,
true],
61 [ValueType::FLOAT,
"foo",
false],
62 [ValueType::STRING,
"foo",
true],
63 [ValueType::STRING, 2,
false],
64 [ValueType::DATETIME, new \DateTimeImmutable(),
true],
65 [ValueType::DATETIME,
"foo",
false],
66 [ValueType::BOOL,
true,
true],
67 [ValueType::BOOL,
false,
true],
68 [ValueType::BOOL,
"true",
false],
69 [ValueType::BOOL, 1,
false],
70 [ValueType::BOOL,
null,
false],
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testIntRepresentation()
ILIAS\Data\Description\DDValueTest::testIntRepresentation |
( |
ValueType |
$type, |
|
|
|
$value, |
|
|
|
$is_match |
|
) |
| |
casesProvider
Definition at line 36 of file DValueTest.php.
References $res.
39 $this->createMock(\
ILIAS\
Data\Text\SimpleDocumentMarkdown::class),
43 $res = $desc->getPrimitiveRepresentation($value);
46 $this->assertEquals($value,
$res);
48 $this->assertInstanceOf(\Closure::class,
$res);
49 $errors = iterator_to_array(
$res());
50 $this->assertCount(1, $errors);
51 $this->assertTrue(is_string($errors[0]));
Interface Observer Contains several chained tasks and infos about them.
The documentation for this class was generated from the following file: