ILIAS  release_8 Revision v8.24
GroupTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
23use ILIAS\Data\Factory as DataFactory;
24use ILIAS\Refinery\Container\Group as ContainerGroup;
27
28class GroupTest extends TestCase
29{
30 private ContainerGroup $group;
31 private DataFactory $dataFactory;
32
33 protected function setUp(): void
34 {
35 $this->dataFactory = new DataFactory();
36 $this->group = new ContainerGroup($this->dataFactory);
37 }
38
39 public function testCustomConstraint(): void
40 {
41 $instance = $this->group->addLabels(['hello', 'world']);
42 $this->assertInstanceOf(AddLabels::class, $instance);
43 }
44}
Builds data types.
Definition: Factory.php:21
Adds to any array keys for each value.
Definition: AddLabels.php:33
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GroupTest.php:21