ILIAS  release_8 Revision v8.24
GroupTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
24use ILIAS\Refinery\Integer\Group as IntegerGroup;
30use ilLanguage;
31
32class GroupTest extends TestCase
33{
34 private IntegerGroup $group;
35
36 protected function setUp(): void
37 {
38 $dataFactory = new Factory();
39 $language = $this->getMockBuilder(ilLanguage::class)
40 ->disableOriginalConstructor()
41 ->getMock();
42
43 $this->group = new IntegerGroup($dataFactory, $language);
44 }
45
46 public function testGreaterThanInstance(): void
47 {
48 $instance = $this->group->isGreaterThan(42);
49 $this->assertInstanceOf(GreaterThan::class, $instance);
50 }
51 public function testLowerThanInstance(): void
52 {
53 $instance = $this->group->isLessThan(42);
54 $this->assertInstanceOf(LessThan::class, $instance);
55 }
56
57 public function testGreaterThanOrEqualInstance(): void
58 {
59 $instance = $this->group->isGreaterThanOrEqual(42);
60 $this->assertInstanceOf(GreaterThanOrEqual::class, $instance);
61 }
62
63 public function testLessThanOrEqualInstance(): void
64 {
65 $instance = $this->group->isLessThanOrEqual(42);
66 $this->assertInstanceOf(LessThanOrEqual::class, $instance);
67 }
68}
Builds data types.
Definition: Factory.php:21
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...