ILIAS  release_7 Revision v7.30-3-g800a261c036
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
12
13require_once('./libs/composer/vendor/autoload.php');
14
15class GroupTest extends TestCase
16{
20 private $group;
21
25 private $dataFactory;
26
30 private $language;
31
32 public function setUp() : void
33 {
34 $this->dataFactory = new Factory();
35 $this->language = $this->getMockBuilder('\ilLanguage')
36 ->disableOriginalConstructor()
37 ->getMock();
38
39 $this->group = new Group($this->dataFactory, $this->language);
40 }
41
42 public function testIsNumericGroup()
43 {
44 $instance = $this->group->isNumeric();
45 $this->assertInstanceOf(IsNumeric::class, $instance);
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
language()
Definition: language.php:2