Definition at line 34 of file DObjectTest.php.
◆ fieldNamesProvider()
static ILIAS\Data\Description\DObjectTest::fieldNamesProvider |
( |
| ) |
|
|
static |
◆ obviousNoMatchProvider()
static ILIAS\Data\Description\DObjectTest::obviousNoMatchProvider |
( |
| ) |
|
|
static |
Definition at line 147 of file DObjectTest.php.
References null.
150 [1], [
"1"], [
null], [
true], [[]]
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ simpleObjectsProvider()
static ILIAS\Data\Description\DObjectTest::simpleObjectsProvider |
( |
| ) |
|
|
static |
Definition at line 65 of file DObjectTest.php.
References ILIAS\UI\Implementation\Component\Input\getValue().
68 $o1_a =
new class () {
74 $o1_b =
new class () {
77 $e1 = new \StdClass();
81 $o2_a =
new class () {
82 public function getSomeValue():
int 87 $o2_b =
new class () {
88 public $some_value = 23;
90 $o2_c =
new class () {
91 public $someValue = 23;
93 $e2 = new \StdClass();
◆ testAllowedFieldNames()
ILIAS\Data\Description\DObjectTest::testAllowedFieldNames |
( |
string |
$name, |
|
|
bool |
$is_allowed |
|
) |
| |
fieldNamesProvider
Definition at line 109 of file DObjectTest.php.
112 $this->expectException(\InvalidArgumentException::class);
115 $field =
new Field($name, $this->createMock(Description::class));
116 $this->assertEquals($name, $field->getName());
◆ testObviouslyNotMatching()
ILIAS\Data\Description\DObjectTest::testObviouslyNotMatching |
( |
|
$data | ) |
|
obviousNoMatchProvider
Definition at line 134 of file DObjectTest.php.
References $data, and $res.
137 $this->createMock(\
ILIAS\
Data\Text\SimpleDocumentMarkdown::class)
139 $res = $desc->getPrimitiveRepresentation(
$data);
141 $this->assertInstanceOf(\Closure::class,
$res);
142 $errors = iterator_to_array(
$res());
143 $this->assertCount(1, $errors);
144 $this->assertTrue(is_string($errors[0]));
Interface Observer Contains several chained tasks and infos about them.
◆ testSimpleObject()
ILIAS\Data\Description\DObjectTest::testSimpleObject |
( |
string |
$field, |
|
|
|
$object, |
|
|
|
$expected |
|
) |
| |
simpleObjectsProvider
Definition at line 39 of file DObjectTest.php.
References $res.
41 $md = $this->createMock(\
ILIAS\
Data\Text\SimpleDocumentMarkdown::class);
47 $this->createMock(\
ILIAS\
Data\Text\SimpleDocumentMarkdown::class),
53 $res = $desc->getPrimitiveRepresentation($object);
55 if (!is_null($expected)) {
56 $this->assertEquals($expected,
$res);
58 $this->assertInstanceOf(\Closure::class,
$res);
59 $errors = iterator_to_array(
$res());
60 $this->assertCount(1, $errors);
61 $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: