ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
GroupTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Data\Factory as DataFactory;
24use ILIAS\Refinery\Container\Group as ContainerGroup;
26use PHPUnit\Framework\TestCase;
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:36
Adds to any array keys for each value.
Definition: AddLabels.php:33