ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tests\Refinery\Logical\GroupTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\Logical\GroupTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\Logical\GroupTest:

Public Member Functions

 testLogicalOrGroup ()
 
 testNotGroup ()
 
 testParallelGroup ()
 
 testSequentialGroup ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

LogicalGroup $group
 
DataFactory $dataFactory
 
Language $language
 
Constraint $greaterThanConstraint
 
Constraint $lessThanConstaint
 

Detailed Description

Definition at line 35 of file GroupTest.php.

Member Function Documentation

◆ setUp()

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

Definition at line 43 of file GroupTest.php.

43 : void
44 {
45 $this->dataFactory = new DataFactory();
46 $this->language = $this->getMockBuilder(Language::class)
47 ->disableOriginalConstructor()
48 ->getMock();
49
50 $this->group = new LogicalGroup($this->dataFactory, $this->language);
51
52 $this->greaterThanConstraint = new GreaterThan(2, $this->dataFactory, $this->language);
53 $this->lessThanConstaint = new LessThan(5, $this->dataFactory, $this->language);
54 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

◆ testLogicalOrGroup()

ILIAS\Tests\Refinery\Logical\GroupTest::testLogicalOrGroup ( )

Definition at line 56 of file GroupTest.php.

56 : void
57 {
58 $instance = $this->group->logicalOr([$this->greaterThanConstraint, $this->lessThanConstaint]);
59 $this->assertInstanceOf(LogicalOr::class, $instance);
60 }

◆ testNotGroup()

ILIAS\Tests\Refinery\Logical\GroupTest::testNotGroup ( )

Definition at line 62 of file GroupTest.php.

62 : void
63 {
64 $instance = $this->group->not($this->greaterThanConstraint);
65 $this->assertInstanceOf(Not::class, $instance);
66 }

◆ testParallelGroup()

ILIAS\Tests\Refinery\Logical\GroupTest::testParallelGroup ( )

Definition at line 68 of file GroupTest.php.

68 : void
69 {
70 $instance = $this->group->parallel([$this->greaterThanConstraint, $this->lessThanConstaint]);
71 $this->assertInstanceOf(Parallel::class, $instance);
72 }

◆ testSequentialGroup()

ILIAS\Tests\Refinery\Logical\GroupTest::testSequentialGroup ( )

Definition at line 74 of file GroupTest.php.

74 : void
75 {
76 $instance = $this->group->sequential([$this->greaterThanConstraint, $this->lessThanConstaint]);
77 $this->assertInstanceOf(Sequential::class, $instance);
78 }

Field Documentation

◆ $dataFactory

DataFactory ILIAS\Tests\Refinery\Logical\GroupTest::$dataFactory
private

Definition at line 38 of file GroupTest.php.

◆ $greaterThanConstraint

Constraint ILIAS\Tests\Refinery\Logical\GroupTest::$greaterThanConstraint
private

Definition at line 40 of file GroupTest.php.

◆ $group

LogicalGroup ILIAS\Tests\Refinery\Logical\GroupTest::$group
private

Definition at line 37 of file GroupTest.php.

◆ $language

Language ILIAS\Tests\Refinery\Logical\GroupTest::$language
private

Definition at line 39 of file GroupTest.php.

◆ $lessThanConstaint

Constraint ILIAS\Tests\Refinery\Logical\GroupTest::$lessThanConstaint
private

Definition at line 41 of file GroupTest.php.


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