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;
25use ILIAS\Refinery\Numeric\Group as NumericGroup;
26use PHPUnit\Framework\TestCase;
28
29class GroupTest extends TestCase
30{
31 private NumericGroup $group;
32 private DataFactory $dataFactory;
34
35 protected function setUp(): void
36 {
37 $this->dataFactory = new DataFactory();
38 $this->language = $this->getMockBuilder(Language::class)
39 ->disableOriginalConstructor()
40 ->getMock();
41
42 $this->group = new NumericGroup($this->dataFactory, $this->language);
43 }
44
45 public function testIsNumericGroup(): void
46 {
47 $instance = $this->group->isNumeric();
48 $this->assertInstanceOf(IsNumeric::class, $instance);
49 }
50}
Builds data types.
Definition: Factory.php:36