ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Tests\Refinery\String\GroupTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\String\GroupTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\String\GroupTest:

Public Member Functions

 testGreaterThanInstance ()
 
 testLowerThanInstance ()
 
 testMakeClickable ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

StringGroup $group
 

Detailed Description

Definition at line 30 of file GroupTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Refinery\String\GroupTest::setUp ( )
protected

Definition at line 34 of file GroupTest.php.

34  : void
35  {
36  $dataFactory = new DataFactory();
37  $language = $this->getMockBuilder(\ILIAS\Language\Language::class)
38  ->disableOriginalConstructor()
39  ->getMock();
40 
41  $this->group = new StringGroup($dataFactory, $language);
42  }
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testGreaterThanInstance()

ILIAS\Tests\Refinery\String\GroupTest::testGreaterThanInstance ( )

Definition at line 44 of file GroupTest.php.

44  : void
45  {
46  $instance = $this->group->hasMaxLength(42);
47  $this->assertInstanceOf(HasMaxLength::class, $instance);
48  }

◆ testLowerThanInstance()

ILIAS\Tests\Refinery\String\GroupTest::testLowerThanInstance ( )

Definition at line 50 of file GroupTest.php.

50  : void
51  {
52  $instance = $this->group->hasMinLength(42);
53  $this->assertInstanceOf(HasMinLength::class, $instance);
54  }

◆ testMakeClickable()

ILIAS\Tests\Refinery\String\GroupTest::testMakeClickable ( )

Definition at line 56 of file GroupTest.php.

56  : void
57  {
58  $instance = $this->group->makeClickable();
59  $this->assertInstanceOf(MakeClickable::class, $instance);
60  }

Field Documentation

◆ $group

StringGroup ILIAS\Tests\Refinery\String\GroupTest::$group
private

Definition at line 32 of file GroupTest.php.


The documentation for this class was generated from the following file: