ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
GroupTest.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 
11 
12 require_once('./libs/composer/vendor/autoload.php');
13 
14 class GroupTest extends TestCase
15 {
19  private $group;
20 
21  public function setUp() : void
22  {
23  $dataFactory = new Factory();
24  $language = $this->getMockBuilder('\ilLanguage')
25  ->disableOriginalConstructor()
26  ->getMock();
27 
28  $this->group = new Group($dataFactory, $language);
29  }
30 
31  public function testGreaterThanInstance()
32  {
33  $instance = $this->group->isGreaterThan(42);
34  $this->assertInstanceOf(GreaterThan::class, $instance);
35  }
36  public function testLowerThanInstance()
37  {
38  $instance = $this->group->isLessThan(42);
39  $this->assertInstanceOf(LessThan::class, $instance);
40  }
41 }
Builds data types.
Definition: Factory.php:19