Definition at line 35 of file GroupTest.php.
◆ 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().
◆ 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 }
◆ $dataFactory
DataFactory ILIAS\Tests\Refinery\Logical\GroupTest::$dataFactory |
|
private |
◆ $greaterThanConstraint
Constraint ILIAS\Tests\Refinery\Logical\GroupTest::$greaterThanConstraint |
|
private |
◆ $group
LogicalGroup ILIAS\Tests\Refinery\Logical\GroupTest::$group |
|
private |
◆ $language
Language ILIAS\Tests\Refinery\Logical\GroupTest::$language |
|
private |
◆ $lessThanConstaint
Constraint ILIAS\Tests\Refinery\Logical\GroupTest::$lessThanConstaint |
|
private |
The documentation for this class was generated from the following file: